Skip to content

Conversation

@GeniJaho
Copy link
Collaborator

Issue #88
Not much to upgrade for Laravel 10, aside from a few renames.

https://laravel.com/docs/10.x/upgrade#database-expressions
Not sure if we should introduce a rule for this. What do we put for the query grammar parameter?

https://laravel.com/docs/10.x/upgrade#redirect-home
If a rule is needed for this, would we redirect to '/'?

https://laravel.com/docs/10.x/upgrade#service-mocking
This seems difficult to be done properly, taking into account the methods are different on the facades.

https://github.com/laravel/framework/pull/41136/files
Notification::assertTimesSent() to Notification::assertSentTimes() with flipped arguments.
This could be done with a custom rule, but there already exists a MethodCallRename rule that renames methods and has all the boilerplate. We need, however, to swap the arguments in an atomic action together with renaming.
Not sure what's the best way to achieve this. Maybe introducing a new MethodCallRenameWithArgumentSwapping rule in the core Rector repo, or just this repo?

@GeniJaho GeniJaho marked this pull request as ready for review February 21, 2023 18:20
@driftingly driftingly merged commit 00bbfb3 into driftingly:main Feb 27, 2023
@driftingly
Copy link
Owner

Thanks @GeniJaho 🙌

@GeniJaho GeniJaho deleted the laravel-10 branch April 11, 2024 17:02
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