Mercurial > hg > isophonics-drupal-site
diff core/lib/Drupal/Core/Cache/ApcuBackend.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
line wrap: on
line diff
--- a/core/lib/Drupal/Core/Cache/ApcuBackend.php Mon Apr 23 09:33:26 2018 +0100 +++ b/core/lib/Drupal/Core/Cache/ApcuBackend.php Mon Apr 23 09:46:53 2018 +0100 @@ -2,6 +2,8 @@ namespace Drupal\Core\Cache; +use Drupal\Component\Assertion\Inspector; + /** * Stores cache items in the Alternative PHP Cache User Cache (APCu). */ @@ -161,7 +163,7 @@ * {@inheritdoc} */ public function set($cid, $data, $expire = CacheBackendInterface::CACHE_PERMANENT, array $tags = []) { - assert('\Drupal\Component\Assertion\Inspector::assertAllStrings($tags)', 'Cache tags must be strings.'); + assert(Inspector::assertAllStrings($tags), 'Cache tags must be strings.'); $tags = array_unique($tags); $cache = new \stdClass(); $cache->cid = $cid;