Skip to content

Commit

Permalink
Add phpstan 2.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
sidz committed Nov 13, 2024
1 parent 94ede18 commit d922185
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
},
"require": {
"php": "^8.1, <8.4",
"phpstan/phpstan": "^1.8"
"phpstan/phpstan": "^2.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.59",
"infection/infection": "^0.28.0",
"nikic/php-parser": "^4.14 || ^5.0",
"nikic/php-parser": "^5.3",
"phpunit/phpunit": "^10.1"
},
"autoload": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class NoMagicNumberAssignedToPropertyRule extends AbstractMagicNumberRule

public function getNodeType(): string
{
return Node\Stmt\PropertyProperty::class;
return Node\PropertyItem::class;
}

/**
Expand Down

0 comments on commit d922185

Please sign in to comment.