Skip to content

Commit ac13dd5

Browse files
authored
Fix loose comparison in documentation example (#164)
Use strict comparison === instead of == in code example
1 parent 2cf447c commit ac13dd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Authorization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ For any action that gets the user id passed, you can also ask:
533533
```php
534534
$isMe = $this->AuthUser->isMe($userEntity->id);
535535
// This would be equal to
536-
$isMe = $this->AuthUser->id() == $userEntity->id;
536+
$isMe = $this->AuthUser->id() === $userEntity->id;
537537
```
538538

539539
## AuthUser Helper

0 commit comments

Comments
 (0)