mirror of
https://github.com/symfony/ai-store.git
synced 2026-03-23 23:22:17 +01:00
Use phpstan/phpstan-phpunit
This commit is contained in:
committed by
Oskar Stark
parent
7f37291dc0
commit
0a4263f78d
@@ -50,6 +50,7 @@
|
||||
},
|
||||
"require-dev": {
|
||||
"phpstan/phpstan": "^2.1",
|
||||
"phpstan/phpstan-phpunit": "^2.0",
|
||||
"phpstan/phpstan-strict-rules": "^2.0",
|
||||
"phpunit/phpunit": "^11.5.46",
|
||||
"symfony/console": "^6.4|^7.1",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
includes:
|
||||
- vendor/phpstan/phpstan-phpunit/extension.neon
|
||||
- ../../.phpstan/extension.neon
|
||||
|
||||
parameters:
|
||||
@@ -13,10 +14,15 @@ parameters:
|
||||
-
|
||||
message: "#^Method .*::test.*\\(\\) has no return type specified\\.$#"
|
||||
-
|
||||
identifier: missingType.iterableValue
|
||||
path: tests/*
|
||||
message: '#^Call to( static)? method PHPUnit\\Framework\\Assert::.* will always evaluate to true\.$#'
|
||||
reportUnmatched: false
|
||||
-
|
||||
identifier: 'symfonyAi.forbidNativeException'
|
||||
path: tests/*
|
||||
reportUnmatched: false
|
||||
|
||||
services:
|
||||
- # Conditionally enabled by bleeding edge in phpstan/phpstan-phpunit 2.x
|
||||
class: PHPStan\Type\PHPUnit\DataProviderReturnTypeIgnoreExtension
|
||||
tags:
|
||||
- phpstan.ignoreErrorExtension
|
||||
|
||||
Reference in New Issue
Block a user