@@ -51,26 +51,17 @@ public function __construct(EventDispatcherInterface $dispatcher, Stopwatch $sto
51
51
$ this ->requestStack = $ requestStack ;
52
52
}
53
53
54
- /**
55
- * @return void
56
- */
57
- public function addListener (string $ eventName , callable |array $ listener , int $ priority = 0 )
54
+ public function addListener (string $ eventName , callable |array $ listener , int $ priority = 0 ): void
58
55
{
59
56
$ this ->dispatcher ->addListener ($ eventName , $ listener , $ priority );
60
57
}
61
58
62
- /**
63
- * @return void
64
- */
65
- public function addSubscriber (EventSubscriberInterface $ subscriber )
59
+ public function addSubscriber (EventSubscriberInterface $ subscriber ): void
66
60
{
67
61
$ this ->dispatcher ->addSubscriber ($ subscriber );
68
62
}
69
63
70
- /**
71
- * @return void
72
- */
73
- public function removeListener (string $ eventName , callable |array $ listener )
64
+ public function removeListener (string $ eventName , callable |array $ listener ): void
74
65
{
75
66
if (isset ($ this ->wrappedListeners [$ eventName ])) {
76
67
foreach ($ this ->wrappedListeners [$ eventName ] as $ index => $ wrappedListener ) {
@@ -85,10 +76,7 @@ public function removeListener(string $eventName, callable|array $listener)
85
76
$ this ->dispatcher ->removeListener ($ eventName , $ listener );
86
77
}
87
78
88
- /**
89
- * @return void
90
- */
91
- public function removeSubscriber (EventSubscriberInterface $ subscriber )
79
+ public function removeSubscriber (EventSubscriberInterface $ subscriber ): void
92
80
{
93
81
$ this ->dispatcher ->removeSubscriber ($ subscriber );
94
82
}
@@ -226,10 +214,7 @@ public function getOrphanedEvents(Request $request = null): array
226
214
return array_merge (...array_values ($ this ->orphanedEvents ));
227
215
}
228
216
229
- /**
230
- * @return void
231
- */
232
- public function reset ()
217
+ public function reset (): void
233
218
{
234
219
$ this ->callStack = null ;
235
220
$ this ->orphanedEvents = [];
@@ -249,19 +234,15 @@ public function __call(string $method, array $arguments): mixed
249
234
250
235
/**
251
236
* Called before dispatching the event.
252
- *
253
- * @return void
254
237
*/
255
- protected function beforeDispatch (string $ eventName , object $ event )
238
+ protected function beforeDispatch (string $ eventName , object $ event ): void
256
239
{
257
240
}
258
241
259
242
/**
260
243
* Called after dispatching the event.
261
- *
262
- * @return void
263
244
*/
264
- protected function afterDispatch (string $ eventName , object $ event )
245
+ protected function afterDispatch (string $ eventName , object $ event ): void
265
246
{
266
247
}
267
248
0 commit comments