8000 $user parameter is not optional · SofHad/symfony@9874b1d · GitHub
[go: up one dir, main page]

Skip to content

Commit 9874b1d

Browse files
committed
$user parameter is not optional
1 parent 64e2a3e commit 9874b1d

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