Closed silbinarywolf closed 6 years ago
If you return false with a RequestFilter::preRequest(), the server will throw an uncaught exception.
return false
If your filter is meant to block/lock someone out of a website, this will expose the frontend with a 500 server error.
PHPStan should catch this for you
This feature is coming in: https://github.com/silbinarywolf/silverstripe-phpstan/pull/10
This is now in master.
If you
return false
with a RequestFilter::preRequest(), the server will throw an uncaught exception.If your filter is meant to block/lock someone out of a website, this will expose the frontend with a 500 server error.
PHPStan should catch this for you