Skip to content

Commit 1ee99b1

Browse files
committed
fix: Use explicit nullable types for PHP 8.4 compatibility
Fixes PHP 8.4 deprecation warning for implicitly nullable parameters in Iseed constructor. Closes #231
1 parent b764a40 commit 1ee99b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Orangehill/Iseed/Iseed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Iseed
4343
*/
4444
private $composer;
4545

46-
public function __construct(Filesystem $filesystem = null, Composer $composer = null)
46+
public function __construct(?Filesystem $filesystem = null, ?Composer $composer = null)
4747
{
4848
$this->files = $filesystem ?: new Filesystem;
4949
$this->composer = $composer ?: new Composer($this->files);

0 commit comments

Comments
 (0)