Skip to content

Commit 97c10db

Browse files
authored
Merge pull request #161 from wallon-ines/fix/type_error
fix TypeError in DrupalAutoloader
2 parents 7598084 + 6521dc9 commit 97c10db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Drupal/DrupalAutoloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function register(Container $container): void
175175
// and thinking these are real services for PHPStan's container.
176176
if (isset($serviceDefinition['arguments']) && is_array($serviceDefinition['arguments'])) {
177177
array_walk($serviceDefinition['arguments'], function (&$argument) : void {
178-
if (is_array($argument)) {
178+
if (is_array($argument) || !is_string($argument)) {
179179
// @todo fix for @http_kernel.controller.argument_metadata_factory
180180
$argument = '';
181181
} else {

0 commit comments

Comments
 (0)