Skip to content

Conversation

@Lukasss93
Copy link
Member

This pull request updates the codebase to improve compatibility with newer versions of PHPUnit and refines the design of annotation resolver classes. The most important changes include upgrading the PHPUnit configuration file, converting abstract resolver classes to concrete classes with explicit error handling, and making test data providers static for better PHPUnit compatibility.

PHPUnit upgrade and test improvements:

  • Upgraded the PHPUnit configuration in phpunit.xml.dist to use the version 10.5 schema, and updated coverage configuration to the new <source> format.
  • Changed all test data provider methods in tests/HydratorTest.php to be static, ensuring compatibility with PHPUnit 10. [1] [2] [3] [4] [5] [6]

Annotation resolver class refactoring:

  • Converted ConcreteResolver and UnionResolver from abstract classes to concrete classes, and updated their key methods to throw a RuntimeException if called directly, clarifying that these classes are intended to be extended. [1] [2] [3] [4]

Minor codebase cleanup:

  • Removed a redundant call to setAccessible(false) in the constructor of InvalidValueException.php.

@Lukasss93 Lukasss93 requested a review from sergix44 November 23, 2025 18:22
@Lukasss93 Lukasss93 merged commit 06bf418 into master Nov 23, 2025
6 checks passed
@Lukasss93 Lukasss93 deleted the php8.5 branch November 23, 2025 18:23
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.

3 participants