Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 110178b

Browse files
VincentLangletOskarStark
authored andcommitted
Use phpstan/phpstan-phpunit
1 parent 6896e80 commit 110178b

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
},
3636
"require-dev": {
3737
"phpstan/phpstan": "^2.1",
38+
"phpstan/phpstan-phpunit": "^2.0",
3839
"phpstan/phpstan-strict-rules": "^2.0",
3940
"phpunit/phpunit": "^11.5.46"
4041
},

phpstan.dist.neon

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
includes:
2+
- vendor/phpstan/phpstan-phpunit/extension.neon
23
- ../../../../../.phpstan/extension.neon
34

45
parameters:
@@ -13,10 +14,15 @@ parameters:
1314
-
1415
message: "#^Method .*::test.*\\(\\) has no return type specified\\.$#"
1516
-
16-
identifier: missingType.iterableValue
17-
path: Tests/*
17+
message: '#^Call to( static)? method PHPUnit\\Framework\\Assert::.* will always evaluate to true\.$#'
1818
reportUnmatched: false
1919
-
2020
identifier: 'symfonyAi.forbidNativeException'
2121
path: Tests/*
2222
reportUnmatched: false
23+
24+
services:
25+
- # Conditionally enabled by bleeding edge in phpstan/phpstan-phpunit 2.x
26+
class: PHPStan\Type\PHPUnit\DataProviderReturnTypeIgnoreExtension
27+
tags:
28+
- phpstan.ignoreErrorExtension

0 commit comments

Comments
 (0)