Skip to content

Commit 2b2242d

Browse files
committed
🐛 default value from phpstan
1 parent 54f9b11 commit 2b2242d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DocBlock/Tags/Factory/MethodFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function (MethodTagValueParameterNode $param) use ($context) {
5757
),
5858
$param->isReference,
5959
$param->isVariadic,
60-
$param->defaultValue
60+
$param->defaultValue === null ? MethodParameter::NO_DEFAULT_VALUE : (string) $param->defaultValue
6161
);
6262
},
6363
$tagValue->parameters

src/DocBlock/Tags/MethodParameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class MethodParameter
3030
*/
3131
private $defaultValue;
3232

33-
private const NO_DEFAULT_VALUE = '__NO_VALUE__';
33+
public const NO_DEFAULT_VALUE = '__NO_VALUE__';
3434

3535
/**
3636
* @param mixed $defaultValue

0 commit comments

Comments
 (0)