Skip to content

Commit b1a6307

Browse files
Update src/Name/Generator/ControllerNameGenerator.php
Co-authored-by: Andrii Dembitskyi <[email protected]>
1 parent 03f3324 commit b1a6307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Name/Generator/ControllerNameGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function getSubscribedEvents(): array
2121

2222
public function onRequest(RequestEvent $event): void
2323
{
24-
$this->controller = $event->getRequest()->attributes->get('_controller', '');
24+
$this->controller = (string)$event->getRequest()->attributes->get('_controller', '');
2525
}
2626

2727
public function onTerminate(): void

0 commit comments

Comments
 (0)