namespace Drupal\Core\Cache;
+use Drupal\Component\Assertion\Inspector;
use Drupal\Core\PhpStorage\PhpStorageFactory;
use Drupal\Component\Utility\Crypt;
* {@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,