From 255f856dbccade8003380900ba4bcbadf4eb7b28 Mon Sep 17 00:00:00 2001 From: Adam Bramley <adam.bramley@previousnext.com.au> Date: Fri, 24 Jan 2025 09:23:57 +1100 Subject: [PATCH] Null coalesce --- .../views/tests/modules/views_test_data/views_test_data.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/views/tests/modules/views_test_data/views_test_data.install b/core/modules/views/tests/modules/views_test_data/views_test_data.install index 06c90bb6ab07..aea3cd224114 100644 --- a/core/modules/views/tests/modules/views_test_data/views_test_data.install +++ b/core/modules/views/tests/modules/views_test_data/views_test_data.install @@ -11,7 +11,7 @@ * Implements hook_schema(). */ function views_test_data_schema(): array { - return \Drupal::state()->get('views_test_data_schema'); + return \Drupal::state()->get('views_test_data_schema') ?? []; } /** -- GitLab