Skip to content

Commit cf37ead

Browse files
Add more explicit nullable types for default null values
1 parent 936d276 commit cf37ead

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/Fixtures/ContainerAwareFixture.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ContainerAwareFixture implements FixtureInterface, ContainerAwareInterface
2020
{
2121
public $container;
2222

23-
public function setContainer(ContainerInterface $container = null)
23+
public function setContainer(?ContainerInterface $container = null)
2424
{
2525
$this->container = $container;
2626
}

Tests/Fixtures/Type/StringWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class StringWrapper
1515
{
1616
private $string;
1717

18-
public function __construct(string $string = null)
18+
public function __construct(?string $string = null)
1919
{
2020
$this->string = $string;
2121
}

0 commit comments

Comments
 (0)