CodeIgniter Forums
[split] Strict typing (Should CI-4 require PHP 7.3 ?) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: [split] Strict typing (Should CI-4 require PHP 7.3 ?) (/showthread.php?tid=73025)



[split] Strict typing (Should CI-4 require PHP 7.3 ?) - John_Betong - 03-11-2019

It would be nice and make applications perform even faster if declare strict_types was used in the CI4 source script.

When strict _types is added numerous errors and warnings are shown resulting in the Php interpretor having to fall back to using the slower Php 4.0 type juggling tests in order to continue processing.

I have used a Php script to add strict_types to every source file and the errors and warnings are easily rectified so why not use this feature... which may be obligatory in future Php versions?