Skip to content

Commit e7fed27

Browse files
author
Kirill Nesmeyanov
committed
Bump phpstan from 1.x to 2.x and remove unnecessary psalm annotations
1 parent 44d9b82 commit e7fed27

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

composer.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
},
2020
"require-dev": {
2121
"friendsofphp/php-cs-fixer": "^3.53",
22-
"phpstan/extension-installer": "^1.4",
23-
"phpstan/phpstan": "^1.11",
24-
"phpstan/phpstan-strict-rules": "^1.6",
22+
"phpstan/phpstan": "^2.0",
23+
"phpstan/phpstan-deprecation-rules": "^2.0",
24+
"phpstan/phpstan-strict-rules": "^2.0",
2525
"phpunit/phpunit": "^10.5|^11.0",
2626
"rector/rector": "^1.1",
2727
"symfony/var-dumper": "^5.4|^6.0|^7.0",
@@ -45,9 +45,6 @@
4545
"optimize-autoloader": true,
4646
"preferred-install": {
4747
"*": "dist"
48-
},
49-
"allow-plugins": {
50-
"phpstan/extension-installer": true
5148
}
5249
},
5350
"scripts": {

phpstan.neon

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
includes:
22
- phar://phpstan.phar/conf/bleedingEdge.neon
3+
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
4+
- vendor/phpstan/phpstan-strict-rules/rules.neon
35
parameters:
4-
level: 9
6+
level: max
57
strictRules:
68
allRules: true
79
fileExtensions:

src/Exception/ReaderException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace TypeLang\Reader\Exception;
66

77
/**
8-
* @psalm-consistent-constructor
8+
* @phpstan-consistent-constructor
99
*/
1010
class ReaderException extends \LogicException implements ReaderExceptionInterface
1111
{

0 commit comments

Comments
 (0)