Skip to content

Commit af3189e

Browse files
committed
fix phpstan errors
1 parent 539f3c6 commit af3189e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/Internal/Util/Config.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public static function isEnabled(): bool
145145
}
146146
}
147147

148-
if (\defined('TYPEPHP_DISABLE') && TYPEPHP_DISABLE) {
148+
if (\defined('TYPEPHP_DISABLE') && (bool) TYPEPHP_DISABLE) {
149149
return false;
150150
}
151151

‎src/bootstrap.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
|| (isset($_ENV['TYPEPHP_DISABLE']) && filter_var($_ENV['TYPEPHP_DISABLE'], FILTER_VALIDATE_BOOLEAN))
1515
|| (isset($_SERVER['TYPEPHP_DISABLE']) && filter_var($_SERVER['TYPEPHP_DISABLE'], FILTER_VALIDATE_BOOLEAN))
1616
);
17-
$isDisabledConst = \defined('TYPEPHP_DISABLE') && TYPEPHP_DISABLE;
17+
$isDisabledConst = \defined('TYPEPHP_DISABLE') && (bool) TYPEPHP_DISABLE;
1818

1919
$isTooling = false;
2020
$binary = '';

0 commit comments

Comments
 (0)