psalm
-
PHP Psalm warning for RouteServiceProvider configureRateLimiting method
Categories: ProgrammingWhen running psalm in a Laravel project, I get the following error by default: This is the default implementation for configureRateLimiting in the RouteServiceProvider class in Laravel: I change it to the following to get psalm to pass (I’ve added named parameters and the static keyword before the callback function):