Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated

Created on 8 August 2023, over 1 year ago
Updated 13 September 2024, 5 months ago

When we try to add some custom tags, invalidateTags will verify whether there is a uuid in the modified tag.

function my_module_cache_node_presave(EntityInterface $entity) {
  $tag_list = Cache::buildTags('node:type', [$entity->bundle()], ':');
  Cache::invalidateTags($tag_list);
}

Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\Component\Uuid\Uuid::isValid() (line 29 of /var/www/html/docroot/core/lib/Drupal/Component/Uuid/Uuid.php)

πŸ› Bug report
Status

Closed: cannot reproduce

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 2 hours ago

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024