Skip to content

Commit

Permalink
Use strict equality for null check
Browse files Browse the repository at this point in the history
  • Loading branch information
askvortsov1 committed Dec 2, 2020
1 parent fe01705 commit f160d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/ScopeVisibilityTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static function registerVisibilityScoper($scoper, $ability = null)
{
$model = static::class;

if ($ability == null) {
if ($ability === null) {
$ability = static::$DEFAULT;
}

Expand Down

0 comments on commit f160d90

Please sign in to comment.