|
@@ -24,7 +24,7 @@ discard block |
|
|
block discarded – undo |
|
24
|
24
|
|
|
25
|
25
|
public function autowire(string|array|callable $target): callable |
|
26
|
26
|
{ |
|
27
|
|
- return function () use ($target) { |
|
|
27
|
+ return function() use ($target) { |
|
28
|
28
|
if (\is_array($target)) { |
|
29
|
29
|
$target = array_filter($target); // Don't allow [class-name::class-name] method |
|
30
|
30
|
$tc = \count($target); |
|
@@ -148,8 +148,7 @@ discard block |
|
|
block discarded – undo |
|
148
|
148
|
$reflectionClass = new \ReflectionClass($target); // @phpstan-ignore-line |
|
149
|
149
|
|
|
150
|
150
|
$reflectionClassMethod = null === $method ? |
|
151
|
|
- $reflectionClass->getConstructor() : |
|
152
|
|
- $reflectionClass->getMethod($method) |
|
|
151
|
+ $reflectionClass->getConstructor() : $reflectionClass->getMethod($method) |
|
153
|
152
|
; |
|
154
|
153
|
|
|
155
|
154
|
if (null === $reflectionClassMethod) { |
Please login to merge, or discard this patch.