diff --git a/composer.json b/composer.json index 33a6e68..d01217c 100644 --- a/composer.json +++ b/composer.json @@ -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/" } diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 0c0f03f..aa3323d 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -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/' diff --git a/src/Seld/JsonLint/DuplicateKeyException.php b/src/Seld/JsonLint/DuplicateKeyException.php index 1f7670c..d5a579b 100644 --- a/src/Seld/JsonLint/DuplicateKeyException.php +++ b/src/Seld/JsonLint/DuplicateKeyException.php @@ -14,6 +14,7 @@ class DuplicateKeyException extends ParsingException { /** + * @phpstan-ignore-next-line * @var array{key: string, line: int} */ protected $details;