From 2433cbdf515b787bbc6eef48406d48a58d2fd80d Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Wed, 11 Feb 2026 17:34:23 +0100 Subject: [PATCH] Fix phpstan build on PHP 7.4 --- src/DependencyInjection/NeonAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DependencyInjection/NeonAdapter.php b/src/DependencyInjection/NeonAdapter.php index 6fb8d1e1f0..0d75f3e1c3 100644 --- a/src/DependencyInjection/NeonAdapter.php +++ b/src/DependencyInjection/NeonAdapter.php @@ -70,7 +70,7 @@ public function process(array $arr, string $fileKey, string $file): array if (!is_array($val) && $val !== null) { throw new InvalidConfigurationException(sprintf('Replacing operator is available only for arrays, item \'%s\' is not array.', $key)); } - $key = substr($key, 0, -1); + $key = substr($key, 0, -1) ?: ''; $val[Helpers::PREVENT_MERGING] = true; }