Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several updates to modernize the codebase, improve compatibility with newer versions of PHP and Symfony, and enhance type safety. The most significant changes include raising the minimum required PHP and dependency versions, updating CI workflows, and refining type annotations throughout the codebase.
Dependency and compatibility updates:
composer.json. Updated development dependencies to newer major versions, includingphpunit,phpstan, and addeddoctrine/ormas a dev dependency.Continuous Integration (CI) and workflow improvements:
actions/checkout@v4and modernized the PHP/Symfony version matrix, removing unsupported versions and adding new ones (e.g., Symfony 6.4, 7.1, PHP 8.4). Removed unnecessary steps for requiringdoctrine/ormduring CI runs, as it is now a dev dependency. [1] [2] [3] [4] [5] [6]Type safety and code quality enhancements:
ApiContext.php, by specifying generic array types, using intersection types (e.g.,KernelInterface&TerminableInterface), and adding docblocks for better static analysis. Updated method implementations to align with stricter type expectations. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]ApiContext.phpto properly handle JSON requests by setting the request content when appropriate, and improved header and route parameter handling.Testing improvements:
ApiContextTesttoApiContextTestCasefor improved test structure and clarity.These changes collectively modernize the codebase, improve maintainability, and ensure compatibility with the latest PHP and Symfony releases.