News for hackers. Stuff that matters.
Re:PHP 8 by DJBunnies on Thursday November 26, 2020 @10:56AM (#25221062)
== is loose type.

=== is strict.

Re:PHP 8 by tonyedgecombe on Thursday November 26, 2020 @11:31AM (#25221345)
Is there any way to force the use of ===
Re:PHP 8 by stephenr on Thursday November 26, 2020 @01:59PM (#25222678)
Write `===` when you want to compare things.

There is no way to disable the `==` operator or make it do strict comparisons (yet)

Re:PHP 8 by DJBunnies on Thursday November 26, 2020 @11:53AM (#25221575)

    declare(scrict_types=1);
Re:PHP 8 by stephenr on Thursday November 26, 2020 @01:59PM (#25222681)
That isn’t what that does.
Re:PHP 8 by dkarlovi on Thursday November 26, 2020 @02:08PM (#25222749)
Enforce by code style tools.