Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / config / ResourceCheckerConfigCache.php
index 0a79b84c1c7b38768abf986cae1aa083015b38fb..91feed6228329fccf3bfe538aec307e732d36c3d 100644 (file)
@@ -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);
         }
     }