Skip to content

Commit c36e2a1

Browse files
committed
Improve PHP 8.4+ support by avoiding implicitly nullable types
1 parent c3e5276 commit c36e2a1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"require": {
1414
"php": ">=5.3.6",
15-
"knplabs/packagist-api": "^1.0",
15+
"knplabs/packagist-api": "^2.1.4",
1616
"symfony/console": "^6.0 || ^5.0 || ^4.0 || ^3.0 || ^2.5",
1717
"symfony/finder": "^6.0 || ^5.0 || ^4.0 || ^3.0 || ^2.5",
1818
"symfony/process": "^6.0 || ^5.0 || ^4.0 || ^3.0 || ^2.5"

src/Command/Build.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Build extends Command
1313
/** @var Packager */
1414
private $packager;
1515

16-
public function __construct(Packager $packager = null)
16+
public function __construct($packager = null)
1717
{
1818
parent::__construct();
1919

src/Command/Install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Install extends Command
1818
/** @var bool */
1919
private $isWindows;
2020

21-
public function __construct(Packager $packager = null, $isWindows = null)
21+
public function __construct($packager = null, $isWindows = null)
2222
{
2323
if ($packager === null) {
2424
$packager = new Packager();

src/Command/Search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Search extends Command
2727
/** @var bool */
2828
private $isWindows;
2929

30-
public function __construct(Packager $packager = null, Client $packagist = null, $isWindows = null)
30+
public function __construct($packager = null, $packagist = null, $isWindows = null)
3131
{
3232
if ($packager === null) {
3333
$packager = new Packager();

0 commit comments

Comments
 (0)