X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fconfig%2FResourceCheckerConfigCache.php;h=91feed6228329fccf3bfe538aec307e732d36c3d;hb=4e1bfbf98b844da83b18aca92ef00f11a4735806;hp=0a79b84c1c7b38768abf986cae1aa083015b38fb;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/vendor/symfony/config/ResourceCheckerConfigCache.php b/vendor/symfony/config/ResourceCheckerConfigCache.php index 0a79b84c1..91feed622 100644 --- a/vendor/symfony/config/ResourceCheckerConfigCache.php +++ b/vendor/symfony/config/ResourceCheckerConfigCache.php @@ -72,7 +72,7 @@ class ResourceCheckerConfigCache implements ConfigCacheInterface $this->resourceCheckers = iterator_to_array($this->resourceCheckers); } - if (!count($this->resourceCheckers)) { + if (!\count($this->resourceCheckers)) { return true; // shortcut - if we don't have any checkers we don't need to bother with the meta file at all } @@ -137,7 +137,7 @@ class ResourceCheckerConfigCache implements ConfigCacheInterface } } - if (\function_exists('opcache_invalidate') && ini_get('opcache.enable')) { + if (\function_exists('opcache_invalidate') && filter_var(ini_get('opcache.enable'), FILTER_VALIDATE_BOOLEAN)) { @opcache_invalidate($this->file, true); } }