Skip to content

Commit

Permalink
default value
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Feb 1, 2024
1 parent d30f29e commit 525dd53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ReflectionAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class ReflectionAttribute extends BaseReflectionAttribute
{
public function __construct(
private string $attributeName,
int $flags = 0,
private Class_|ClassMethod|Function_|ClassConst|Property $attributeHolder
private int $flags = 0,
private Class_|ClassMethod|Function_|ClassConst|Property|null $attributeHolder = null
) {
}

Expand Down
1 change: 0 additions & 1 deletion src/Traits/AttributeResolverTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use Go\ParserReflection\ReflectionFunction;
use Go\ParserReflection\ReflectionMethod;
use Go\ParserReflection\ReflectionProperty;
use PhpParser\Node\Stmt;
use PhpParser\Node\Stmt\ClassConst;
use PhpParser\Node\Stmt\ClassLike;
use PhpParser\Node\Stmt\ClassMethod;
Expand Down

0 comments on commit 525dd53

Please sign in to comment.