Skip to content

Commit 611206b

Browse files
OskarStarkchr-hertel
authored andcommitted
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 1089e85 commit 611206b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agent/phpstan.dist.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ parameters:
55
- tests/
66
ignoreErrors:
77
-
8-
message: '#no value type specified in iterable type array#'
8+
identifier: missingType.iterableValue
99
path: tests/*
1010

0 commit comments

Comments
 (0)