X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fconfig%2FConfigCacheFactory.php;h=7903cca9321f0901f0f8f033ef56c8b0d1cbd78e;hb=4e1bfbf98b844da83b18aca92ef00f11a4735806;hp=396536e2d8ed8eddbe1102d315f955723c6eb14b;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/symfony/config/ConfigCacheFactory.php b/vendor/symfony/config/ConfigCacheFactory.php index 396536e2d..7903cca93 100644 --- a/vendor/symfony/config/ConfigCacheFactory.php +++ b/vendor/symfony/config/ConfigCacheFactory.php @@ -22,9 +22,6 @@ namespace Symfony\Component\Config; */ class ConfigCacheFactory implements ConfigCacheFactoryInterface { - /** - * @var bool Debug flag passed to the ConfigCache - */ private $debug; /** @@ -40,13 +37,13 @@ class ConfigCacheFactory implements ConfigCacheFactoryInterface */ public function cache($file, $callback) { - if (!is_callable($callback)) { - throw new \InvalidArgumentException(sprintf('Invalid type for callback argument. Expected callable, but got "%s".', gettype($callback))); + if (!\is_callable($callback)) { + throw new \InvalidArgumentException(sprintf('Invalid type for callback argument. Expected callable, but got "%s".', \gettype($callback))); } $cache = new ConfigCache($file, $this->debug); if (!$cache->isFresh()) { - call_user_func($callback, $cache); + \call_user_func($callback, $cache); } return $cache;