diff --git a/Tests/Fixtures/FooInterface.php b/Tests/Fixtures/FooInterface.php index 172958b4..c094efe2 100644 --- a/Tests/Fixtures/FooInterface.php +++ b/Tests/Fixtures/FooInterface.php @@ -7,5 +7,5 @@ interface FooInterface /** * Hello. */ - public function foo(?\stdClass $a, \stdClass $b = null); + public function foo(?\stdClass $a, ?\stdClass $b = null); } diff --git a/Tests/Fixtures/Twig.php b/Tests/Fixtures/Twig.php index 5d1a73d4..bb6e578d 100644 --- a/Tests/Fixtures/Twig.php +++ b/Tests/Fixtures/Twig.php @@ -18,7 +18,7 @@ class __TwigTemplate_VarDumperFixture_u75a09 extends AbstractTwigTemplate { private $path; - public function __construct(Twig\Environment $env = null, $path = null) + public function __construct(?Twig\Environment $env = null, $path = null) { if (null !== $env) { parent::__construct($env); diff --git a/Tests/Fixtures/dumb-var.php b/Tests/Fixtures/dumb-var.php index fc48012f..1b36fcd1 100644 --- a/Tests/Fixtures/dumb-var.php +++ b/Tests/Fixtures/dumb-var.php @@ -22,7 +22,7 @@ class DumbFoo '[]' => [], 'res' => $g, 'obj' => $foo, - 'closure' => function ($a, \PDO &$b = null) {}, + 'closure' => function ($a, ?\PDO &$b = null) {}, 'line' => __LINE__ - 1, 'nobj' => [(object) []], ];