Skip to content

Conversation

DGarbs51
Copy link
Contributor

@DGarbs51 DGarbs51 commented Aug 5, 2025

  • 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.

- 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.
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 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.
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.
@taylorotwell taylorotwell merged commit baa3672 into laravel:5.x Aug 5, 2025
14 checks passed
@DGarbs51 DGarbs51 deleted the phpunit-12-migration branch August 5, 2025 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants