@@ -127,7 +127,8 @@ |
||
127 | 127 | public static function fromPair(string|object $controller, string $action): self |
128 | 128 | { |
129 | 129 | /** @psalm-suppress ArgumentTypeCoercion */ |
130 | - if (\is_object($controller) || \method_exists($controller, $action)) { |
|
130 | + if (\is_object($controller) || \method_exists($controller, $action)) |
|
131 | + { |
|
131 | 132 | /** @var T|class-string<T> $controller */ |
132 | 133 | return self::fromReflectionMethod(new \ReflectionMethod($controller, $action), $controller); |
133 | 134 | } |