Skip to content

Commit c12daef

Browse files
authored
minor #289 [ci] replace psalm with phpstan
1 parent 598fc74 commit c12daef

File tree

5 files changed

+66
-64
lines changed

5 files changed

+66
-64
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ jobs:
2020
uses: SymfonyCasts/.github/.github/workflows/php-cs-fixer.yaml@main
2121

2222
sca:
23-
uses: SymfonyCasts/.github/.github/workflows/psalm.yaml@main
23+
uses: SymfonyCasts/.github/.github/workflows/phpstan.yaml@main
24+
with:
25+
php: 8.3
26+
install-phpunit-bridge: true

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"symfony/framework-bundle": "^5.4 | ^6.0 | ^7.0",
1818
"symfony/phpunit-bridge": "^5.4 | ^6.0 | ^7.0",
1919
"doctrine/doctrine-bundle": "^2.8",
20-
"doctrine/annotations": "^1.0"
20+
"doctrine/annotations": "^1.0",
21+
"phpstan/phpstan": "^1.11.x-dev"
2122
},
2223
"autoload": {
2324
"psr-4": {
@@ -28,5 +29,8 @@
2829
"psr-4": {
2930
"SymfonyCasts\\Bundle\\ResetPassword\\Tests\\": "tests/"
3031
}
32+
},
33+
"scripts": {
34+
"phpstan": "vendor/bin/phpstan"
3135
}
3236
}

phpstan-baseline.neon

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Property SymfonyCasts\\\\Bundle\\\\ResetPassword\\\\Command\\\\ResetPasswordRemoveExpiredCommand\\:\\:\\$cleaner has no type specified\\.$#"
5+
count: 1
6+
path: src/Command/ResetPasswordRemoveExpiredCommand.php
7+
8+
-
9+
message: "#^Call to an undefined method Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\NodeParentInterface\\:\\:integerNode\\(\\)\\.$#"
10+
count: 1
11+
path: src/DependencyInjection/Configuration.php
12+
13+
-
14+
message: "#^Property SymfonyCasts\\\\Bundle\\\\ResetPassword\\\\Exception\\\\TooManyPasswordRequestsException\\:\\:\\$availableAt has no type specified\\.$#"
15+
count: 1
16+
path: src/Exception/TooManyPasswordRequestsException.php
17+
18+
-
19+
message: "#^Method SymfonyCasts\\\\Bundle\\\\ResetPassword\\\\Model\\\\ResetPasswordToken\\:\\:getExpirationMessageData\\(\\) return type has no value type specified in iterable type array\\.$#"
20+
count: 1
21+
path: src/Model/ResetPasswordToken.php
22+
23+
-
24+
message: "#^Property SymfonyCasts\\\\Bundle\\\\ResetPassword\\\\ResetPasswordHelper\\:\\:\\$repository has no type specified\\.$#"
25+
count: 1
26+
path: src/ResetPasswordHelper.php
27+
28+
-
29+
message: "#^Property SymfonyCasts\\\\Bundle\\\\ResetPassword\\\\ResetPasswordHelper\\:\\:\\$resetPasswordCleaner has no type specified\\.$#"
30+
count: 1
31+
path: src/ResetPasswordHelper.php
32+
33+
-
34+
message: "#^Property SymfonyCasts\\\\Bundle\\\\ResetPassword\\\\ResetPasswordHelper\\:\\:\\$tokenGenerator has no type specified\\.$#"
35+
count: 1
36+
path: src/ResetPasswordHelper.php
37+
38+
-
39+
message: "#^PHPDoc tag @param references unknown parameter\\: \\$resetRequestLifetime$#"
40+
count: 1
41+
path: src/ResetPasswordHelperInterface.php
42+
43+
-
44+
message: "#^Property SymfonyCasts\\\\Bundle\\\\ResetPassword\\\\Util\\\\ResetPasswordCleaner\\:\\:\\$repository has no type specified\\.$#"
45+
count: 1
46+
path: src/Util/ResetPasswordCleaner.php

phpstan.dist.neon

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
includes:
2+
- phpstan-baseline.neon
3+
parameters:
4+
level: 6
5+
bootstrapFiles:
6+
- vendor/autoload.php
7+
paths:
8+
- src
9+
#- tests
10+
# excludePaths:
11+
# ignoreErrors:

psalm.xml

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)