Skip to content

Commit fb10c00

Browse files
committed
update to PHPStan 1.5 and Psalm to 4.22
1 parent 01817e8 commit fb10c00

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,14 @@
5252
"cs-check": "phpcs --colors -p src/ tests/",
5353
"cs-fix": "phpcbf --colors -p src/ tests/",
5454
"stan": "phpstan analyse src/ && psalm.phar --show-info=false",
55-
"stan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan:^0.12 psalm/phar:^3.7 && mv composer.backup composer.json",
55+
"stan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan:^1.5 psalm/phar:~4.22 && mv composer.backup composer.json",
5656
"test": "phpunit",
5757
"test-coverage": "phpunit --coverage-clover=clover.xml"
5858
},
5959
"config": {
60-
"sort-packages": true
60+
"sort-packages": true,
61+
"allow-plugins": {
62+
"dealerdirect/phpcodesniffer-composer-installer": true
63+
}
6164
}
6265
}

psalm.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<?xml version="1.0"?>
22
<psalm
3-
totallyTyped="false"
4-
resolveFromConfigFile="true"
5-
ignoreInternalFunctionFalseReturn="true"
63
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
74
xmlns="https://getpsalm.org/schema/config"
85
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
6+
autoloader="tests/bootstrap.php"
97
>
108
<projectFiles>
119
<directory name="src" />

0 commit comments

Comments
 (0)