We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fabpot
nicolas-grekas
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent f839b2f commit 9d74d26Copy full SHA for 9d74d26
security/voters.rst
@@ -172,9 +172,9 @@ would look like this::
172
return false;
173
}
174
175
- // you know $subject is a Post object, thanks to `supports()`
176
- /** @var Post $post */
+ // $subject is a Post object, thanks to `supports()` above
177
$post = $subject;
+ assert($post instanceof Post);
178
179
return match($attribute) {
180
self::VIEW => $this->canView($post, $user),
0 commit comments