Skip to content

Support Laravel 12 #2665

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Mar 25, 2025
Merged

Support Laravel 12 #2665

merged 22 commits into from
Mar 25, 2025

Conversation

stayallive
Copy link
Collaborator

@stayallive stayallive commented Mar 8, 2025

Resolves #2662

  • Added or updated tests
  • Documented user facing changes
  • Updated CHANGELOG.md

Changes

Allow Laravel 12 and adjust tests and dependencies where needed.

There are some interesting things.

Breaking changes

None. Laravel 12 is also a super simple release for us from what it seems (in the BC department at least).

@stayallive stayallive force-pushed the laravel-12 branch 3 times, most recently from b32f75f to 86bd25d Compare March 8, 2025 14:06
@stayallive
Copy link
Collaborator Author

This is shaking out some nasty phpstan stuff, a small part is probably a bug on their side (for php 8.4; phpstan/phpstan-src#3855) but others seems to be related to larastan maybe not correctly detecting the testing mixing. Not sure how to fix this. Tests are passing so it's all working but it looks like phpstan/larastan might not understand some stuff all of a sudden. Quick search on both repo's did not yield any red flags. It might be on their side since only the "highest" dependency phpstan runs are failing (and 8.4 runs because of linked bug).

Appreciate a quick look @spawnia since you might know what is going on here or maybe we should just have a little patience and this will resolve itself in a few days 🫣

Copy link
Collaborator

@spawnia spawnia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @stayallive for tackling this. Regarding the points you brought up:

  • Requiring a fork of dms/phpunit-arraysubset-asserts is fine for now
  • I have also encountered the detection of mixins to be broken, as seen in mll-lab/laravel-utils#29. Perhaps it will resolve itself once when PHPStan releases phpstan/phpstan-src#3855?

@stayallive stayallive force-pushed the laravel-12 branch 2 times, most recently from 3b88876 to 009fdf5 Compare March 13, 2025 08:39
@stayallive
Copy link
Collaborator Author

stayallive commented Mar 13, 2025

Locally I'm left with 2 errors on PHP 8.4 (from phpstan), CI does not seem to agree with me yet though 🙈

@spawnia spawnia changed the title Allow Laravel 12 Support Laravel 12 Mar 20, 2025
@spawnia spawnia mentioned this pull request Mar 20, 2025
spawnia and others added 10 commits March 20, 2025 12:18
Warning: Trying to access array offset on null
src/Schema/AST/ASTCache.php:28
# Conflicts:
#	CHANGELOG.md
#	src/Tracing/FederatedTracing/Proto/FieldStat.php
#	src/Tracing/FederatedTracing/Proto/ReportHeader.php
#	src/Tracing/FederatedTracing/Proto/Trace.php
#	src/Tracing/FederatedTracing/Proto/Trace/Node.php
#	src/Tracing/FederatedTracing/Proto/TracesAndStats.php
@spawnia spawnia marked this pull request as ready for review March 25, 2025 16:16
@spawnia spawnia merged commit 8f49b22 into master Mar 25, 2025
65 checks passed
@spawnia spawnia deleted the laravel-12 branch March 25, 2025 16:18
@spawnia
Copy link
Collaborator

spawnia commented Mar 25, 2025

Released with https://github.com/nuwave/lighthouse/releases/tag/v6.54.0.

@stayallive
Copy link
Collaborator Author

Thanks @spawnia for taking this over the finish line 🧡

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.

Support Laravel 12
3 participants