You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add PHPUnit 12 compatibility while maintaining backwards compatibility (#1576)
* Add PHPUnit 12 compatibility while maintaining backwards compatibility
- Add PHPUnit 12 to version constraints in composer.json
- Update phpstan to support version 2.0
- Update predis to support version 3.0
- Add cacheDirectory attribute for PHPUnit 10+ (ignored by PHPUnit 9)
- Keep all existing attributes for backwards compatibility
- Update .gitignore to exclude PHPUnit cache directory
- No schema reference to avoid validation conflicts between versions
This allows the package to work with PHPUnit 9, 10, 11, and 12.
* Remove deprecated PHPUnit attributes to fix warnings in PHPUnit 12
Removed the following deprecated attributes that cause warnings in PHPUnit 12:
- backupStaticAttributes
- convertDeprecationsToExceptions
- convertErrorsToExceptions
- convertNoticesToExceptions
- convertWarningsToExceptions
- verbose
These attributes are no longer needed and their removal maintains compatibility
with PHPUnit 9-12 while eliminating warnings in PHPUnit 12.
* Add PHPUnit command-line flags to replace removed XML attributes
Add command-line flags to maintain the same test behavior after removing
deprecated XML attributes:
- --fail-on-risky (replaces failOnRisky attribute)
- --fail-on-warning (replaces failOnWarning attribute)
- --stop-on-error (replaces stopOnError attribute)
- --stop-on-failure (replaces stopOnFailure attribute)
- --display-warnings/errors/notices/deprecations (replaces convert* attributes)
This ensures tests maintain the same strictness level across all PHPUnit versions.
* Fix PHPUnit command-line flags for compatibility
Remove non-existent --display-* flags. The convert* XML attributes that were
removed actually control PHP error handling, which is handled by PHPUnit's
default behavior. Keep only the flags that exist and maintain test strictness.
0 commit comments