Skip to content

Commit

Permalink
Fix typo in isFalse check
Browse files Browse the repository at this point in the history
  • Loading branch information
rawilk committed Sep 28, 2023
1 parent b64ccc4 commit 84989d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function isFalse(string $key, $default = false): bool
{
$value = $this->get(key: $key, default: $default);

return $value === false || $value === '0' || $value === 1;
return $value === false || $value === '0' || $value === 0;
}

public function isTrue(string $key, $default = true): bool
Expand Down

0 comments on commit 84989d4

Please sign in to comment.