- Issue created by @Patrick R.
Calling one of the methods hasAllTags or hasAnyTag on select queries throws an error if no tags have been added to the query since the alterTags property is not initialized with an empty array.
Error: Typed property Drupal\Core\Database\Query\Select::$alterTags must not be accessed before initialization in Drupal\Core\Database\Query\Select->hasAnyTag()
Run the following snippet in the codebase:
$query = \Drupal::database()->select('node');
$query->hasAnyTag(['foo', 'bar']);
Initialize the alterTags property with an empty array.
Active
10.1 ✨