Skip to content

Commit c61e89f

Browse files
HypeMCnicolas-grekas
authored andcommitted
[HttpKernel][Workflow] Declare arguments explicitly
1 parent 146c221 commit c61e89f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CHANGELOG
99
* Remove `Kernel::getAnnotatedClassesToCompile()` and `Kernel::setAnnotatedClassCache()`
1010
* Make `ServicesResetter` class `final`
1111
* Add argument `$logChannel` to `ErrorListener::logException()`
12+
* Add argument `$event` to `DumpListener::configure()`
1213
* Replace `__sleep/wakeup()` by `__(un)serialize()` on kernels and data collectors
1314

1415
7.4

EventListener/DumpListener.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,8 @@ public function __construct(
3838
) {
3939
}
4040

41-
/**
42-
* @param ?ConsoleCommandEvent $event
43-
*/
44-
public function configure(/* ?ConsoleCommandEvent $event = null */): void
41+
public function configure(?ConsoleCommandEvent $event = null): void
4542
{
46-
$event = 1 <= \func_num_args() ? func_get_arg(0) : null;
4743
$input = $event?->getInput();
4844

4945
$cloner = $this->cloner;

0 commit comments

Comments
 (0)