Skip to content

Commit 3d2d14c

Browse files
authored
Merge pull request #87 from cakephp/update-stan
update to PHPStan 1.5 and Psalm to 4.22
2 parents 01817e8 + fb10c00 commit 3d2d14c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

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)