8000 minor #117 $user parameter is not optional (olvlvl) · SofHad/symfony@7625eff · GitHub
[go: up one dir, main page]

Skip to content

Commit 7625eff

Browse files
committed
minor symfony#117 $user parameter is not optional (olvlvl)
This PR was merged into the master branch. Discussion ---------- $user parameter is not optional Commits ------- 9874b1d $user parameter is not optional
2 parents a8d2079 + 9874b1d commit 7625eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AppBundle/Entity/Post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function setAuthorEmail($authorEmail)
137137
*
138138
* @return bool
139139
*/
140-
public function isAuthor(User $user = null)
140+
public function isAuthor(User $user)
141141
{
142142
return $user->getEmail() == $this->getAuthorEmail();
143143
}

0 commit comments

Comments
 (0)
0