chore: rename CSRF middleware to PreventRequestForgery for Laravel 13#484
Merged
peterfox merged 6 commits intodriftingly:mainfrom Mar 24, 2026
Merged
Conversation
Collaborator
|
I doubt the tests will pass unless you create stubs, just remove the tests--- there's no need to test rector |
Contributor
Author
|
okay removed tests 😅 |
calebdw
approved these changes
Mar 18, 2026
peterfox
approved these changes
Mar 18, 2026
Collaborator
peterfox
left a comment
There was a problem hiding this comment.
I actually think the tests would be worth while, just because it makes it clear what the set does but I'm happy to merge as is
da5387f to
7ccb6b6
Compare
Contributor
Author
|
@peterfox added tests back |
peterfox
approved these changes
Mar 21, 2026
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.
Per the Laravel 13 upgrade guide, the CSRF middleware classes have been renamed. This PR updates the Laravel 13 set to automatically rename direct references to the new middleware class.
Using Rector's core
RenameClassRectoris consistent with existing class-renaming patterns across the project and handlesusestatements,::classreferences, type hints, and class inheritance automatically.