Skip to content

Commit 85c1e47

Browse files
committed
Update Injected.php
1 parent b4748ab commit 85c1e47

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Ubiquity/attributes/items/di/Injected.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
class Injected extends BaseAttribute {
2222
use BaseAnnotationTrait;
2323

24-
public string $name;
25-
public string $code;
24+
public ?string $name;
25+
public ?string $code;
2626

2727
/**
2828
* Injected constructor.
29-
* @param string $name
30-
* @param string $code
29+
* @param null|string $name
30+
* @param null|string $code
3131
*/
32-
public function __construct(string $name, string $code) {
32+
public function __construct(?string $name = null, ?string $code = null) {
3333
$this->name = $name;
3434
$this->code = $code;
3535
}

0 commit comments

Comments
 (0)