Posts tagged phpstan

Kinetis Framework 1.23: A PHPStan Rule for Process and SAPI Globals

kinetis/framework 1.23.0 adds a third PHPStan rule for application code, NoProcessGlobalsRule. It flags the places where code reaches past the PSR-7 request and response into the PHP process or the SAPI: exit and die, the request superglobals, and the SAPI header, cookie and native session functions. The same release registers all three Kinetis rules in every Kinetis package, the skeleton included, and the monorepo’s manifest validator now enforces it.

Read more ...