X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FCache%2FPhpBackend.php;fp=web%2Fcore%2Flib%2FDrupal%2FCore%2FCache%2FPhpBackend.php;h=d3af7f5843461a55238ccf58a8ff78b7c0cce78c;hp=2404493404f13992d86ad9e12e15cbda67d96a43;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/lib/Drupal/Core/Cache/PhpBackend.php b/web/core/lib/Drupal/Core/Cache/PhpBackend.php index 240449340..d3af7f584 100644 --- a/web/core/lib/Drupal/Core/Cache/PhpBackend.php +++ b/web/core/lib/Drupal/Core/Cache/PhpBackend.php @@ -2,6 +2,7 @@ namespace Drupal\Core\Cache; +use Drupal\Component\Assertion\Inspector; use Drupal\Core\PhpStorage\PhpStorageFactory; use Drupal\Component\Utility\Crypt; @@ -143,7 +144,8 @@ class PhpBackend implements CacheBackendInterface { * {@inheritdoc} */ public function set($cid, $data, $expire = 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.'); + $item = (object) [ 'cid' => $cid, 'data' => $data,