'message' => '#^Storing entity storage as a class property is not recommended\\. Call Drupal\\\\Core\\\\Entity\\\\EntityTypeManagerInterface\\:\\:getStorage\\(\\) at the call\\-site instead\\.$#',
'message' => '#^Method Drupal\\\\Core\\\\TypedData\\\\TypedDataManagerInterface\\:\\:setValidationConstraintManager\\(\\) has no return type specified\\.$#',
@@ -171,40 +200,18 @@ public function getPropertyInstance(TypedDataInterface $object, $property_name,
if(!$definition){
thrownew\InvalidArgumentException("Property $property_name is unknown.");
}
// For performance, try to reuse existing prototypes instead of
// constructing new objects when possible. A prototype is derived from the
// definition it was built from: create() takes the class from
// $definition->getClass(), and the name and parent passed below are wiped
// again by setContext(NULL, NULL). Prototypes are therefore keyed by the
// definition object itself, so that two distinct definition objects never
// share a prototype.
//
// The prototypes are held in a \WeakMap so that each one is released
// together with the data definition it was built from, instead of growing
// an array that is only ever emptied by clearCachedDefinitions().
if(!$this->prototypesinstanceof\WeakMap){
if($this->prototypes!==NULL){
@trigger_error('Setting \\Drupal\\Core\\TypedData\\TypedDataManager::$prototypes to anything other than a \\WeakMap or NULL is deprecated in drupal:11.6.0 and is removed from drupal:13.0.0. See https://www.drupal.org/node/3638699',E_USER_DEPRECATED);
}
$this->prototypes=new\WeakMap();
}
$prototype=$this->prototypes[$definition]??NULL;
// Create the prototype if needed.
if($prototype===NULL){
// Create the prototype without any value, but with initial parenting
// so that constructors can set up the objects correctly.