lint/laravel/prefer-exception-class-string
In the lint-strict preset. In Rector’s rector-laravel/laravel-code-quality set. Needs the laravel extension. Unsafe fix: it can change behavior.
What it does
changes use of a new throw instance to class string
Configuration
[lint.rules]
"laravel/prefer-exception-class-string" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
ThrowIfAndThrowUnlessExceptionsToUseClassString(rector-laravel)