Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

lint/laravel-11

Upgrade to Laravel 11: code a newer Laravel removes, deprecates or does better.

prefer-assert-see-html

Replace assertSee with assertSeeHtml when testing HTML with escape set to false

Not in any preset. In Rector’s rector-laravel/laravel-110, rector-laravel/up-to-laravel-110, rector-laravel/up-to-laravel-120, rector-laravel/up-to-laravel-130, rector-laravel/up-to-laravel-130-without-attributes sets. Needs the laravel extension. Safe fix.

prefer-casts-method

Refactor Model $casts property with casts() method

Not in any preset. In Rector’s rector-laravel/laravel-110, rector-laravel/up-to-laravel-110, rector-laravel/up-to-laravel-120, rector-laravel/up-to-laravel-130, rector-laravel/up-to-laravel-130-without-attributes sets. Needs the laravel extension. Unsafe fix: it can change behavior.

prefer-geometry-column

refactors calls with the pre Laravel 11 methods for blueprint geometry columns

Not in any preset. In Rector’s rector-laravel/laravel-110, rector-laravel/up-to-laravel-110, rector-laravel/up-to-laravel-120, rector-laravel/up-to-laravel-130, rector-laravel/up-to-laravel-130-without-attributes sets. Needs the laravel extension. Unsafe fix: it can change behavior.

prefer-queueable-trait

Replace Dispatchable, InteractsWithQueue, Queueable, and SerializesModels traits with the Queueable trait

Not in any preset. In Rector’s rector-laravel/laravel-110, rector-laravel/up-to-laravel-110, rector-laravel/up-to-laravel-120, rector-laravel/up-to-laravel-130, rector-laravel/up-to-laravel-130-without-attributes sets. Needs the laravel extension. Unsafe fix: it can change behavior.

Last updated on

Was this page helpful?