lint/laravel/prefer-sleep-facade
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
Use Sleep::sleep() and Sleep::usleep() instead of the sleep() and usleep() function.
Configuration
[lint.rules]
"laravel/prefer-sleep-facade" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
SleepFuncToSleepStaticCall(rector-laravel)