Skip to content

Commit

Permalink
Update to latest phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Apr 1, 2022
1 parent 471da18 commit 4211420
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"require-dev": {
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0 || ^8.5.13",
"phpstan/phpstan": "^0.12.59"
"phpstan/phpstan": "^1.5"
},
"autoload": {
"psr-4": { "Seld\\JsonLint\\": "src/Seld/JsonLint/" }
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ parameters:
- tests/

ignoreErrors:
- '/Method JsonParserTest::[a-zA-Z0-9]+\(\) has no return typehint/'
- '/Method JsonParserTest::[a-zA-Z0-9]+\(\) has no return type/'
1 change: 1 addition & 0 deletions src/Seld/JsonLint/DuplicateKeyException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
class DuplicateKeyException extends ParsingException
{
/**
* @phpstan-ignore-next-line
* @var array{key: string, line: int}
*/
protected $details;
Expand Down

0 comments on commit 4211420

Please sign in to comment.