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 includes several updates to improve compatibility, enhance functionality, and fix issues in the project. The most important changes include adding support for new PHP versions, updating dependencies, and improving test coverage.
Compatibility and Dependency Updates:
.github/workflows/run-tests.yml
: Added PHP versions 8.3 and 8.4 to the test matrix to ensure compatibility with the latest PHP releases.composer.json
: Updated therequire
andrequire-dev
sections to support a wider range of PHP versions and package versions, ensuring compatibility with newer releases. Also moved thefunding
homepage
andlicense
fields for better organization. [1] [2] [3]Code Improvements:
src/Backtrace.php
: Changed the$options
variable to useDEBUG_BACKTRACE_PROVIDE_OBJECT
as parameter doesn't accept null and throws deprecation warning on PHP 8.4 PHP Docs.src/Frame.php
: Made themethod
andclass
parameters nullable in the constructor for better flexibility and fixing of deprecation warnings.Test Enhancements:
tests/BacktraceTest.php
: Added conditional assertions to handle differences in PHP versions for methods involving closures (See PHP 8.4 changes), ensuring tests pass across different PHP versions. [1] [2]tests/ReduceArgumentsTest.php
: Changed test data providers to be static methods, improving test organization and consistency. [1] [2]