File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,13 @@ public function loadConfiguration(): void
120
120
// Prevent \Nette\DI\ContainerBuilder::completeStatement from array_walk_recursive into the arguments
121
121
// and thinking these are real services for PHPStan's container.
122
122
if (isset ($ serviceDefinition ['arguments ' ]) && is_array ($ serviceDefinition ['arguments ' ])) {
123
- array_walk ($ serviceDefinition ['arguments ' ], function (string &$ argument ) : void {
124
- $ argument = str_replace ('@ ' , '' , $ argument );
123
+ array_walk ($ serviceDefinition ['arguments ' ], function (&$ argument ) : void {
124
+ if (is_array ($ argument )) {
125
+ // @todo fix for @http_kernel.controller.argument_metadata_factory
126
+ $ argument = '' ;
127
+ } else {
128
+ $ argument = str_replace ('@ ' , '' , $ argument );
129
+ }
125
130
});
126
131
}
127
132
unset($ serviceDefinition ['tags ' ]);
You can’t perform that action at this time.
0 commit comments