forked from jwage/phpunit-test-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update PHPStan baseline to ignore specific errors
Added entries to PHPStan baseline configuration to ignore specific errors related to type hints and method definitions in several files. This helps to bypass known issues and keeps the focus on critical errors during static analysis.
- Loading branch information
1 parent
a38d2f9
commit 34e9e49
Showing
1 changed file
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,36 @@ | ||
parameters: | ||
ignoreErrors: [] | ||
ignoreErrors: | ||
- | ||
message: "#^Parameter \\#1 \\$className of method PHPUnitTestGenerator\\\\TestClassGenerator\\:\\:generate\\(\\) expects class\\-string, string given\\.$#" | ||
count: 1 | ||
path: lib/Command/GenerateTestClassCommand.php | ||
|
||
- | ||
message: "#^Property PHPUnitTestGenerator\\\\TestClassGenerator\\:\\:\\$reflectionClass with generic class ReflectionClass does not specify its types\\: T$#" | ||
count: 1 | ||
path: lib/TestClassGenerator.php | ||
|
||
- | ||
message: "#^Call to an undefined method ReflectionType\\:\\:getName\\(\\)\\.$#" | ||
count: 2 | ||
path: lib/TestClassMetadataParser.php | ||
|
||
- | ||
message: "#^Call to an undefined method ReflectionType\\:\\:isBuiltin\\(\\)\\.$#" | ||
count: 1 | ||
path: lib/TestClassMetadataParser.php | ||
|
||
- | ||
message: "#^Method PHPUnitTestGenerator\\\\TestClassMetadataParser\\:\\:generateTypeRandomValue\\(\\) return type has no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: lib/TestClassMetadataParser.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\<T of object\\>\\|T of object, string given\\.$#" | ||
count: 1 | ||
path: lib/TestClassMetadataParser.php | ||
|
||
- | ||
message: "#^Property PHPUnitTestGenerator\\\\TestClassMetadataParser\\:\\:\\$reflectionClass with generic class ReflectionClass does not specify its types\\: T$#" | ||
count: 1 | ||
path: lib/TestClassMetadataParser.php |