10000 minor #59112 [Scheduler] Move properties above `__construct()` method… · symfony/symfony@0d28cf1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0d28cf1

Browse files
committed
minor #59112 [Scheduler] Move properties above __construct() method (OskarStark)
This PR was merged into the 7.3 branch. Discussion ---------- [Scheduler] Move properties above `__construct()` method | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | -- | License | MIT Commits ------- 36cb3bf Move properties above `__construct()` method
2 parents b6d6adf + 36cb3bf commit 0d28cf1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Symfony/Component/Scheduler/Schedule.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121

2222
final class Schedule implements ScheduleProviderInterface
2323
{
24-
public function __construct(
25-
private readonly ?EventDispatcherInterface $dispatcher = null,
26-
) {
27-
}
28-
2924
/** @var array<string,RecurringMessage> */
3025
private array $messages = [];
3126
private ?LockInterface $lock = null;
3227
private ?CacheInterface $state = null;
3328
private bool $shouldRestart = false;
3429
private bool $onlyLastMissed = false;
3530

31+
public function __construct(
32+
private readonly ?EventDispatcherInterface $dispatcher = null,
33+
) {
34+
}
35+
3636
public function with(RecurringMessage $message, RecurringMessage ...$messages): static
3737
{
3838
return static::doAdd(new self($this->dispatcher), $message, ...$messages);

0 commit comments

Comments
 (0)
0