Skip to content

Commit

Permalink
🐛 default value from phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
GautierDele committed Nov 1, 2024
1 parent 54f9b11 commit 2b2242d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DocBlock/Tags/Factory/MethodFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function (MethodTagValueParameterNode $param) use ($context) {
),
$param->isReference,
$param->isVariadic,
$param->defaultValue
$param->defaultValue === null ? MethodParameter::NO_DEFAULT_VALUE : (string) $param->defaultValue
);
},
$tagValue->parameters
Expand Down
2 changes: 1 addition & 1 deletion src/DocBlock/Tags/MethodParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class MethodParameter
*/
private $defaultValue;

private const NO_DEFAULT_VALUE = '__NO_VALUE__';
public const NO_DEFAULT_VALUE = '__NO_VALUE__';

/**
* @param mixed $defaultValue
Expand Down

0 comments on commit 2b2242d

Please sign in to comment.