lint/laravel/prefer-exception-class-string
In the code-quality set. Unsafe fix: it can change behaviour. Runs when laravel is installed.
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)