summaryrefslogtreecommitdiff
path: root/vendor/symfony/cache/Adapter/PhpArrayAdapter.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-12-20 13:15:07 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-12-20 13:15:07 +0000
commitd6d267bde52d522e3889574798ca4315da9009b4 (patch)
tree9022d10a8c25bea8e8a981e1a08d7e1152bd9f5c /vendor/symfony/cache/Adapter/PhpArrayAdapter.php
parent23945a1e9b4e73aa11106918ff7a830315c0b826 (diff)
downloadwebtrees-d6d267bde52d522e3889574798ca4315da9009b4.tar.gz
webtrees-d6d267bde52d522e3889574798ca4315da9009b4.tar.bz2
webtrees-d6d267bde52d522e3889574798ca4315da9009b4.zip
Update vendor dependencies
Diffstat (limited to 'vendor/symfony/cache/Adapter/PhpArrayAdapter.php')
-rw-r--r--vendor/symfony/cache/Adapter/PhpArrayAdapter.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/vendor/symfony/cache/Adapter/PhpArrayAdapter.php b/vendor/symfony/cache/Adapter/PhpArrayAdapter.php
index 5f6e99169c..b4f13d1346 100644
--- a/vendor/symfony/cache/Adapter/PhpArrayAdapter.php
+++ b/vendor/symfony/cache/Adapter/PhpArrayAdapter.php
@@ -61,22 +61,17 @@ class PhpArrayAdapter implements AdapterInterface, CacheInterface, PruneableInte
* This adapter takes advantage of how PHP stores arrays in its latest versions.
*
* @param string $file The PHP file were values are cached
- * @param CacheItemPoolInterface $fallbackPool Fallback when opcache is disabled
+ * @param CacheItemPoolInterface $fallbackPool A pool to fallback on when an item is not hit
*
* @return CacheItemPoolInterface
*/
public static function create($file, CacheItemPoolInterface $fallbackPool)
{
- // Shared memory is available in PHP 7.0+ with OPCache enabled
- if (filter_var(ini_get('opcache.enable'), FILTER_VALIDATE_BOOLEAN)) {
- if (!$fallbackPool instanceof AdapterInterface) {
- $fallbackPool = new ProxyAdapter($fallbackPool);
- }
-
- return new static($file, $fallbackPool);
+ if (!$fallbackPool instanceof AdapterInterface) {
+ $fallbackPool = new ProxyAdapter($fallbackPool);
}
- return $fallbackPool;
+ return new static($file, $fallbackPool);
}
/**