We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d93dfe2 commit 2cb932eCopy full SHA for 2cb932e
src/test/php/inject/unittest/AnnotatedConstructorTest.class.php
@@ -32,7 +32,7 @@ public function with_inject_annotation_and_restriction() {
32
public function optional_bound_parameter() {
33
$this->inject->bind(Value::class, $this->newInstance([
34
'injected' => null,
35
- '#[Inject] __construct' => function(AnnotationsTest $test= null) { $this->injected= $test; }
+ '#[Inject] __construct' => function(?AnnotationsTest $test= null) { $this->injected= $test; }
36
]));
37
Assert::equals($this, $this->inject->get(Value::class)->injected);
38
}
0 commit comments