Skip to content

Commit ab2b2b0

Browse files
committed
Replace FILTER_VALIDATE_BOOLEAN by FILTER_VALIDATE_BOOL
1 parent b9dbd53 commit ab2b2b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ private function getConfigCacheFactory(): ConfigCacheFactoryInterface
334334

335335
private static function getCompiledRoutes(string $path): array
336336
{
337-
if ([] === self::$cache && \function_exists('opcache_invalidate') && filter_var(\ini_get('opcache.enable'), \FILTER_VALIDATE_BOOLEAN) && (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) || filter_var(\ini_get('opcache.enable_cli'), \FILTER_VALIDATE_BOOLEAN))) {
337+
if ([] === self::$cache && \function_exists('opcache_invalidate') && filter_var(\ini_get('opcache.enable'), \FILTER_VALIDATE_BOOL) && (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) || filter_var(\ini_get('opcache.enable_cli'), \FILTER_VALIDATE_BOOL))) {
338338
self::$cache = null;
339339
}
340340

0 commit comments

Comments
 (0)