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 5
5
class DeprecatedTagValueNode implements PhpDocTagValueNode
6
6
{
7
7
8
- /** @var string|null (may be empty) */
8
+ /** @var string (may be empty) */
9
9
public $ description ;
10
10
11
- public function __construct (? string $ description = null )
11
+ public function __construct (string $ description )
12
12
{
13
13
$ this ->description = $ description ;
14
14
}
15
15
16
16
17
17
public function __toString (): string
18
18
{
19
- return $ this -> description ? trim ($ this ->description ) : '' ;
19
+ return trim ($ this ->description );
20
20
}
21
21
22
22
}
Original file line number Diff line number Diff line change @@ -977,7 +977,7 @@ public function provideDeprecatedTagsData(): \Iterator
977
977
new PhpDocNode ([
978
978
new PhpDocTagNode (
979
979
'@deprecated ' ,
980
- new DeprecatedTagValueNode ()
980
+ new DeprecatedTagValueNode ('' )
981
981
),
982
982
]),
983
983
];
You can’t perform that action at this time.
0 commit comments