summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/language/language.module
diff options
context:
space:
mode:
authorcatch <catch@35733.no-reply.drupal.org>2024-06-01 10:15:22 +0100
committercatch <catch@35733.no-reply.drupal.org>2024-06-01 10:15:22 +0100
commit06aeda306c260f1b22ca5ee5e9b59361cc13ff92 (patch)
tree1a0b709e568f8162301e50027559ededf9ee9a25 /core/modules/language/language.module
parenta62995de4249c36366a0c94fe81d9f7906b250b0 (diff)
downloaddrupal-06aeda306c260f1b22ca5ee5e9b59361cc13ff92.tar.gz
drupal-06aeda306c260f1b22ca5ee5e9b59361cc13ff92.zip
Issue #3427999 by andypost, Ayesh, bbrala: [PHP 8.4] Fix implicitly nullable type declarations
Diffstat (limited to 'core/modules/language/language.module')
-rw-r--r--core/modules/language/language.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/language/language.module b/core/modules/language/language.module
index 632baf5d2448..1e2064ae8aa9 100644
--- a/core/modules/language/language.module
+++ b/core/modules/language/language.module
@@ -397,7 +397,7 @@ function language_field_info_alter(&$info) {
/**
* Implements hook_entity_field_access().
*/
-function language_entity_field_access($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items = NULL) {
+function language_entity_field_access($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, ?FieldItemListInterface $items = NULL) {
// Only allow edit access on a langcode field if the entity it is attached to
// is configured to have an alterable language. Also without items we can not
// decide whether or not to allow access.