Skip to content

Commit 6521dc9

Browse files
author
Ines WALLON
committed
fix TypeError in DrupalAutoloader
1 parent 7598084 commit 6521dc9

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)