File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 55class DeprecatedTagValueNode implements PhpDocTagValueNode
66{
77
8- /** @var string|null (may be empty) */
8+ /** @var string (may be empty) */
99 public $description;
1010
11- public function __construct(? string $description = null )
11+ public function __construct(string $description)
1212 {
1313 $this->description = $description;
1414 }
1515
1616
1717 public function __toString(): string
1818 {
19- return $this->description ? trim($this->description) : '' ;
19+ return trim($this->description);
2020 }
2121
2222}
Original file line number Diff line number Diff line change @@ -977,7 +977,7 @@ public function provideDeprecatedTagsData(): \Iterator
977977 new PhpDocNode([
978978 new PhpDocTagNode(
979979 '@deprecated',
980- new DeprecatedTagValueNode()
980+ new DeprecatedTagValueNode('' )
981981 ),
982982 ]),
983983 ];
You can’t perform that action at this time.
0 commit comments