diff --git a/tests/Acceptance/PhpStanTestConstructorRuleTest.php b/tests/Acceptance/PhpStanTestConstructorRuleTest.php index 3423f752..a6d6e99c 100644 --- a/tests/Acceptance/PhpStanTestConstructorRuleTest.php +++ b/tests/Acceptance/PhpStanTestConstructorRuleTest.php @@ -35,13 +35,14 @@ final class GoodTestConstructorProbe { public function __construct( private Service $service, + private ?Service $nullableService, private int $defaulted = 1, ) {} #[Test] public function testMethod(): void { - echo $this->service::class, $this->defaulted; + echo $this->service::class, \get_debug_type($this->nullableService), $this->defaulted; } }