diff --git a/core/lib/Drupal/Core/Entity/entity.api.php b/core/lib/Drupal/Core/Entity/entity.api.php index a46b90ce98..ebbbf63bdb 100644 --- a/core/lib/Drupal/Core/Entity/entity.api.php +++ b/core/lib/Drupal/Core/Entity/entity.api.php @@ -966,7 +966,7 @@ function hook_ENTITY_TYPE_revision_create(Drupal\Core\Entity\EntityInterface $ne * hook_entity_storage_load() should be used to load additional data for * content entities. * - * @param \Drupal\Core\Entity\EntityInterface[] &$entities + * @param \Drupal\Core\Entity\EntityInterface[] $entities * The entities keyed by entity ID. * @param string $entity_type_id * The type of entities being loaded (i.e. node, user, comment). @@ -974,7 +974,7 @@ function hook_ENTITY_TYPE_revision_create(Drupal\Core\Entity\EntityInterface $ne * @ingroup entity_crud * @see hook_ENTITY_TYPE_load() */ -function hook_entity_load(array &$entities, $entity_type_id) { +function hook_entity_load(array $entities, $entity_type_id) { foreach ($entities as $entity) { $entity->foo = mymodule_add_something($entity); } diff --git a/core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module b/core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module index baf0604cc8..0325dbdbb4 100644 --- a/core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module +++ b/core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module @@ -178,7 +178,7 @@ function entity_crud_hook_test_user_insert() { /** * Implements hook_entity_load(). */ -function entity_crud_hook_test_entity_load(array &$entities, $type) { +function entity_crud_hook_test_entity_load(array $entities, $type) { $GLOBALS['entity_crud_hook_test'][] = (__FUNCTION__ . ' called for type ' . $type); } diff --git a/core/modules/views/tests/modules/views_entity_test/views_entity_test.module b/core/modules/views/tests/modules/views_entity_test/views_entity_test.module index fc046b88ae..7d80e84c78 100644 --- a/core/modules/views/tests/modules/views_entity_test/views_entity_test.module +++ b/core/modules/views/tests/modules/views_entity_test/views_entity_test.module @@ -51,7 +51,7 @@ function views_entity_test_entity_field_access($operation, FieldDefinitionInterf * * @see \Drupal\Tests\views\Kernel\Handler\FieldFieldTest::testSimpleExecute() */ -function views_entity_test_entity_load(array &$entities, $entity_type_id) { +function views_entity_test_entity_load(array $entities, $entity_type_id) { if ($entity_type_id === 'entity_test') { // Cast the value of an entity field to be something else than a string so // we can check that diff --git a/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php b/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php index 988344a87c..8267683ff5 100644 --- a/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php +++ b/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php @@ -136,6 +136,7 @@ public static function getSkippedDeprecations() { 'The Symfony\Component\HttpFoundation\Session\Storage\Handler\WriteCheckSessionHandler class is deprecated since Symfony 3.4 and will be removed in 4.0. Implement `SessionUpdateTimestampHandlerInterface` or extend `AbstractSessionHandler` instead.', 'The "session_handler.write_check" service relies on the deprecated "Symfony\Component\HttpFoundation\Session\Storage\Handler\WriteCheckSessionHandler" class. It should either be deprecated or its implementation upgraded.', 'Not setting the strict option of the Choice constraint to true is deprecated since Symfony 3.4 and will throw an exception in 4.0.', + 'Calling Drupal\Core\Extension\ModuleHandlerInterface::getImplementations() directly has been deprecated since Drupal 8.7.0. If you needed this for custom hook invocations, use Drupal\Core\Extension\ModuleHandlerInterface::invoke*With() instead. You can find more detailed information about this change at https://www.drupal.org/node/3000490.', ]; }