![]() |
declare(strict_types=1); - What are the latest objections? - 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: declare(strict_types=1); - What are the latest objections? (/showthread.php?tid=80534) |
declare(strict_types=1); - What are the latest objections? - John_Betong - 11-12-2021 PHP 8.0.0 now has a mixed function parameter variable type which should satisfy those folks who prefer to let PHP Type Juggling handle their loose scripts: https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.mixed I was wondering if there are any other objections to declare strict_types? I prefer declaring strict_types because obscure errors are detected which require fixing before proceeding. RE: declare(strict_types=1); - What are the latest objections? - InsiteFX - 11-13-2021 Thanks @John_Betong , good information to know. |