Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit fed405e

Browse files
authored
chore: use PHPStan error identifier instead of regex pattern (#389)
## Summary This PR updates the PHPStan configuration to use an error identifier instead of a regex pattern for ignoring array type errors in tests. ## Changes - Replace regex pattern with identifier ## Benefits Using error identifiers is the recommended approach because: - **More stable**: Identifiers don't change across PHPStan versions, unlike error message text - **Cleaner**: Easier to read and understand the intent - **Maintainable**: Less prone to breaking if error message wording changes ## Testing PHPStan analysis passes with the new configuration.
1 parent 5b9e952 commit fed405e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpstan.dist.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ parameters:
1111
treatPhpDocTypesAsCertain: false
1212
ignoreErrors:
1313
-
14-
message: '#no value type specified in iterable type array#'
14+
identifier: missingType.iterableValue
1515
path: tests/*
1616

0 commit comments

Comments
 (0)