We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2c68e0 commit f391affCopy full SHA for f391aff
src/Event/functions.php
@@ -6,13 +6,8 @@
6
7
if (!function_exists('PhpSchool\PhpWorkshop\Event\containerListener')) {
8
9
- /**
10
- * @param string $service
11
- * @param string $method
12
- * @return ContainerListenerHelper
13
- */
14
- function containerListener(string $service, string $method = '__invoke')
+ function containerListener(string $service, string $method = '__invoke'): callable
15
{
16
- return new ContainerListenerHelper($service, $method);
+ return fn () => new ContainerListenerHelper($service, $method);
17
}
18
0 commit comments