Welcome Guest, Not a member yet? Register   Sign In
declare(strict_types=1); - What are the latest objections?
#1

(This post was last modified: 11-12-2021, 11:30 PM by John_Betong.)

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.t...ions.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.
Reply
#2

Thanks @John_Betong , good information to know.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB