Skip to content

Commit f8a861f

Browse files
authored
Fix method name compare in ResolveControllerNameSubscriber
The left side to strtolower was not actually lowercased, so it would be always false.
1 parent e5625ba commit f8a861f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EventListener/ResolveControllerNameSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function resolveControllerName(...$args)
4848

4949
public function __call(string $method, array $args)
5050
{
51-
if ('onKernelRequest' !== $method && 'onKernelRequest' !== strtolower($method)) {
51+
if ('onKernelRequest' !== $method && 'onkernelrequest' !== strtolower($method)) {
5252
throw new \Error(sprintf('Error: Call to undefined method "%s::%s()".', static::class, $method));
5353
}
5454

0 commit comments

Comments
 (0)