Skip to content

Commit c0ae94a

Browse files
committed
Fix PHPStan error: move optional parameter after required ones
PHP deprecates required parameters after optional ones. Move the nullable WatchtowerClient parameter to the end of the constructor.
1 parent 9c4b5e8 commit c0ae94a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Services/System/UpdateChecker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public function __construct(private readonly HttpClientInterface $httpClient,
4949
private readonly PrivacySettings $privacySettings, private readonly LoggerInterface $logger,
5050
private readonly InstallationTypeDetector $installationTypeDetector,
5151
private readonly GitVersionInfoProvider $gitVersionInfoProvider,
52-
private readonly ?WatchtowerClient $watchtowerClient = null,
5352
#[Autowire(param: 'kernel.debug')] private readonly bool $is_dev_mode,
54-
#[Autowire(param: 'kernel.project_dir')] private readonly string $project_dir)
53+
#[Autowire(param: 'kernel.project_dir')] private readonly string $project_dir,
54+
private readonly ?WatchtowerClient $watchtowerClient = null)
5555
{
5656

5757
}

0 commit comments

Comments
 (0)