Skip to content

v0.10.2 aka the "no-superglobals release"

Choose a tag to compare

@moufmouf moufmouf released this 06 Jul 09:42
· 42 commits to master since this release
1c12746

This release adds a new rule that forbids the usage of HTTP related superglobals.

  • The use of $_GET, $_POST, $_FILES, $_COOKIE, $_SESSION, $_REQUEST is forbidden. You should instead use your framework's request/session object.
  • Superglobal usage is still tolerated at the root scope (because it is typically used once in index.php to initialize PSR-7 request object)

The rationale is that your framework should have a Request object to deal with it (PSR-7 FTW!)