Skip to content

Commit 5ef6a74

Browse files
authored
Fixed implicitly nullable params (#6616)
1 parent 048eaa0 commit 5ef6a74

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Package.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function getDirectory(): string
7777
/**
7878
* Get resource bundle object.
7979
*/
80-
public function bundle(Finder $finder = null): Bundle
80+
public function bundle(?Finder $finder = null): Bundle
8181
{
8282
$bundle = new Bundle();
8383
$dir = $this->getDirectory();

src/TargetPhar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function buildFromIterator(Traversable $iterator): void
7272
/**
7373
* Create the default execution file.
7474
*/
75-
public function createDefaultStub(string $indexFile, string $webIndexFile = null): string
75+
public function createDefaultStub(string $indexFile, ?string $webIndexFile = null): string
7676
{
7777
$params = [$indexFile];
7878
if ($webIndexFile != null) {

0 commit comments

Comments
 (0)