Skip to content

Commit 2433cbd

Browse files
Fix phpstan build on PHP 7.4
1 parent 707fbe1 commit 2433cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DependencyInjection/NeonAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function process(array $arr, string $fileKey, string $file): array
7070
if (!is_array($val) && $val !== null) {
7171
throw new InvalidConfigurationException(sprintf('Replacing operator is available only for arrays, item \'%s\' is not array.', $key));
7272
}
73-
$key = substr($key, 0, -1);
73+
$key = substr($key, 0, -1) ?: '';
7474
$val[Helpers::PREVENT_MERGING] = true;
7575
}
7676

0 commit comments

Comments
 (0)