Skip to content

Commit 4211420

Browse files
committed
Update to latest phpstan
1 parent 471da18 commit 4211420

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"require-dev": {
1818
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0 || ^8.5.13",
19-
"phpstan/phpstan": "^0.12.59"
19+
"phpstan/phpstan": "^1.5"
2020
},
2121
"autoload": {
2222
"psr-4": { "Seld\\JsonLint\\": "src/Seld/JsonLint/" }

phpstan.neon.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ parameters:
66
- tests/
77

88
ignoreErrors:
9-
- '/Method JsonParserTest::[a-zA-Z0-9]+\(\) has no return typehint/'
9+
- '/Method JsonParserTest::[a-zA-Z0-9]+\(\) has no return type/'

src/Seld/JsonLint/DuplicateKeyException.php

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
class DuplicateKeyException extends ParsingException
1515
{
1616
/**
17+
* @phpstan-ignore-next-line
1718
* @var array{key: string, line: int}
1819
*/
1920
protected $details;

0 commit comments

Comments
 (0)