Skip to content

Commit 188dd85

Browse files
committed
Leverage First-class callable syntax
1 parent 200bb3e commit 188dd85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Kernel/MicroKernelTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ protected function configureContainer(ContainerConfigurator $c): void
129129

130130
protected function configureRoutes(RoutingConfigurator $routes): void
131131
{
132-
$routes->add('hello', '/')->controller([$this, 'helloAction']);
132+
$routes->add('hello', '/')->controller($this->helloAction(...));
133133
}
134134
};
135135

0 commit comments

Comments
 (0)