CodeIgniter4 icon indicating copy to clipboard operation
CodeIgniter4 copied to clipboard

Dev: use Superglobals service and remove superglobals

Open kenjis opened this issue 2 years ago • 1 comments

Use Services::superglobals() and remove all superglobals ($_SERVER, $_GET) in the code base (except in the Superglobals class).

https://github.com/codeigniter4/CodeIgniter4/blob/60b22bf6022f5979036a2fd309df6e3a00e89c05/system/Config/Services.php#L723

https://github.com/codeigniter4/CodeIgniter4/blob/60b22bf6022f5979036a2fd309df6e3a00e89c05/system/Superglobals.php#L19

kenjis avatar Aug 26 '23 02:08 kenjis

This is a good phpstan rule.

paulbalandan avatar Aug 26 '23 02:08 paulbalandan