Skip to content

Commit 7a43920

Browse files
Fix PHPStan errors
1 parent 59ad982 commit 7a43920

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Configuration.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ public static function isFalsy(mixed $value): bool
5858
if ('false' === $value) {
5959
return true;
6060
}
61+
if (is_int($value)) {
62+
return !$value;
63+
}
6164

62-
return (int) $value ? 0 : 1;
65+
return false;
6366
}
6467
}

0 commit comments

Comments
 (0)