Repository navigation
v0.10.2 aka the "no-superglobals release"
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.phpto initialize PSR-7 request object)
The rationale is that your framework should have a Request object to deal with it (PSR-7 FTW!)