Skip to content

Commit e1422d7

Browse files
authored
Merge pull request #121 from Dstny-One/php8.4
Fix PHP 8.4 deprecation notices
2 parents ad249f8 + 73a5b24 commit e1422d7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Bootstrap.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public function __construct(
6464
\Vaimo\ComposerPatches\Composer\Context $composerContext,
6565
\Composer\IO\IOInterface $appIO,
6666
\Vaimo\ComposerPatches\Factories\ConfigFactory $configFactory,
67-
\Vaimo\ComposerPatches\Interfaces\ListResolverInterface $listResolver = null,
68-
\Vaimo\ComposerPatches\Strategies\OutputStrategy $outputStrategy = null
67+
?\Vaimo\ComposerPatches\Interfaces\ListResolverInterface $listResolver = null,
68+
?\Vaimo\ComposerPatches\Strategies\OutputStrategy $outputStrategy = null
6969
) {
7070
$this->composerContext = $composerContext;
7171
$this->listResolver = $listResolver;

src/Exceptions/PatchFailureException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PatchFailureException extends \Exception
1212
*/
1313
private $failedPatchPath;
1414

15-
public function __construct($failedPatchPath, $message = '', \Exception $previous = null)
15+
public function __construct($failedPatchPath, $message = '', ?\Exception $previous = null)
1616
{
1717
parent::__construct($message, 0, $previous);
1818

src/Factories/BootstrapFactory.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public function __construct(
3636

3737
public function create(
3838
ConfigFactory $configFactory,
39-
ListResolver $listResolver = null,
40-
OutputStrategy $outputStrategy = null
39+
?ListResolver $listResolver = null,
40+
?OutputStrategy $outputStrategy = null
4141
) {
4242
if ($listResolver === null) {
4343
$listResolver = new ListResolvers\ChangesListResolver(

0 commit comments

Comments
 (0)