Skip to content

Commit 9d74d26

Browse files
authored
[RFC] chore: use assert instead of phpdoc
1 parent f839b2f commit 9d74d26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/voters.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ would look like this::
172172
return false;
173173
}
174174

175-
// you know $subject is a Post object, thanks to `supports()`
176-
/** @var Post $post */
175+
// $subject is a Post object, thanks to `supports()` above
177176
$post = $subject;
177+
assert($post instanceof Post);
178178

179179
return match($attribute) {
180180
self::VIEW => $this->canView($post, $user),

0 commit comments

Comments
 (0)