feat: add support for Laravel 13, Livewire 4, and PHP 8.5#9
Merged
Conversation
…ponent registration, and improve type declarations in traits Co-authored-by: Copilot <copilot@github.com>
There was a problem hiding this comment.
Pull request overview
Adds compatibility updates so the package can be installed and tested against newer platform versions (Laravel 13, Livewire 4, PHP 8.5), while keeping support for older supported versions.
Changes:
- Expanded Composer version constraints for PHP, Laravel, Livewire, and Pest-related dev dependencies.
- Renamed the Livewire component alias from
axis::renderertoaxis-rendererand updated mounting to use the alias. - Updated CI workflows (test matrix + formatting/typecheck workflow) and refreshed README compatibility docs.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
composer.json |
Broadens runtime + dev dependency constraints for Laravel/Livewire/PHP/Pest. |
src/AxisServiceProvider.php |
Registers Livewire component under the new alias axis-renderer. |
src/Traits/RendersAsChart.php |
Mounts the Livewire renderer using the new alias. |
src/Traits/RendersAsFile.php |
Adds strict types and ensures the render-function helper returns a real string. |
tests/Pest.php |
Adds strict types and imports TestCase for Pint compliance. |
tests/Helpers.php |
Adds strict types and removes FQCN usage for Closure. |
.github/workflows/tests.yml |
Expands the PHP test matrix to include 8.4 and 8.5. |
.github/workflows/formats.yml |
Switches formatting/typecheck job to PHP 8.5. |
README.md |
Documents updated compatibility targets. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…version in composer.json Co-authored-by: Copilot <copilot@github.com>
…nd add tests for component registration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds additive compatibility for Laravel 13, Livewire 4, and PHP 8.5 while keeping full backward compatibility with Laravel 10–12, Livewire 3, and PHP 8.2–8.4.
Changes
Laravel 13
laravel/frameworkconstraint to^10.0|^11.0|^12.0|^13.0orchestra/testbenchto^8.0|^9.0|^10.0|^11.0Livewire 4
livewire/livewireconstraint to^3.0|^4.0pestphp/pest-plugin-livewireconstraint to^2.1|^4.0::in component names as a namespace separator. Renamed theaxis::renderercomponent alias toaxis-rendererinAxisServiceProviderandRendersAsChart.PHP 8.5
phpconstraint from^8.2|^8.3|^8.4to^8.2|^8.3|^8.4|^8.58.5to the CI test matrixPest
pestphp/pestconstraint to^2.34|^3.5|^4.3Style fixes (Pint)
declare(strict_types=1)toRendersAsFile,tests/Helpers.php, andtests/Pest.phpfully_qualified_strict_typesrule(string)cast onstr()return inRendersAsFileto satisfy the declared: stringreturn type