Skip to content

1.0.8: feat: Add custom error identifiers for selective error suppression

Choose a tag to compare

@pierresh pierresh released this 09 Nov 02:21
· 46 commits to master since this release
Add unique identifiers to all error types for fine-grained control:

SQL Syntax Validation:
- pdoSql.sqlSyntax

Parameter Binding Validation:
- pdoSql.missingParameter
- pdoSql.extraParameter
- pdoSql.missingBinding
- pdoSql.extraBinding

SELECT Column Validation:
- pdoSql.columnMismatch
- pdoSql.columnMissing
- pdoSql.fetchTypeMismatch

Users can now ignore specific error types in phpstan.neon:
```neon
parameters:
    ignoreErrors:
        - identifier: pdoSql.sqlSyntax
          path: */migrations/*
```

Documentation added in README with:
- Full list of available identifiers
- Examples of ignoring errors by identifier
- Examples of combining identifiers with path/message patterns

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>