Skip to content

Commit 2cb932e

Browse files
committed
Use explicitely nullable type
1 parent d93dfe2 commit 2cb932e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/php/inject/unittest/AnnotatedConstructorTest.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function with_inject_annotation_and_restriction() {
3232
public function optional_bound_parameter() {
3333
$this->inject->bind(Value::class, $this->newInstance([
3434
'injected' => null,
35-
'#[Inject] __construct' => function(AnnotationsTest $test= null) { $this->injected= $test; }
35+
'#[Inject] __construct' => function(?AnnotationsTest $test= null) { $this->injected= $test; }
3636
]));
3737
Assert::equals($this, $this->inject->get(Value::class)->injected);
3838
}

0 commit comments

Comments
 (0)