Skip to content

Commit

Permalink
Update to PHPStan 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-granados committed Oct 8, 2024
1 parent b62b26c commit 0924a00
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
"require": {
"php": ">=8.0",
"ext-simplexml": "*",
"php-static-analysis/attributes": "^0.3.1 || dev-main",
"php-static-analysis/node-visitor": "^0.3.1 || dev-main",
"php-static-analysis/attributes": "^0.3.2 || dev-main",
"php-static-analysis/node-visitor": "^0.3.2 || dev-main",
"vimeo/psalm": "^5",
"webmozart/assert": "^1.11"
},
"require-dev": {
"php-static-analysis/phpstan-extension": "dev-main",
"php-static-analysis/phpstan-extension": "^0.3.2 || dev-main",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan": "^1.8 | ^2.0",
"phpunit/phpunit": "^9.0",
"symplify/easy-coding-standard": "^12.1"
},
Expand Down
5 changes: 4 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ parameters:
- src
- tests
excludePaths:
- tests/data/*
- tests/data/*

includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
2 changes: 1 addition & 1 deletion src/Provider/AttributeStatementProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function getStatementsForFile(
return $this->traverseAst($ast);
}

#[Param(args: 'mixed[]')]
#[Param(args: 'array<int|string, mixed>')]
public function __call(string $method, array $args): mixed
{
$callable = [$this->statementsProvider, $method];
Expand Down

0 comments on commit 0924a00

Please sign in to comment.