Skip to content

Commit 4a79269

Browse files
committed
Removed implicitly nullable arguments
1 parent 3235fdd commit 4a79269

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Setup
2828
/**
2929
* @param Build|null $build
3030
*/
31-
public function __construct(Build $build = null)
31+
public function __construct(?Build $build = null)
3232
{
3333
$this->build = $build ?: new Build();
3434
}

tests/Setup/EntryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private function builder(): Doubles\MockedBuild
134134
return new Doubles\MockedBuild();
135135
}
136136

137-
private function entry(string $id, Doubles\MockedBuild $build = null): Entry
137+
private function entry(string $id, ?Doubles\MockedBuild $build = null): Entry
138138
{
139139
return new Entry($id, $build ?? $this->builder());
140140
}

0 commit comments

Comments
 (0)