Hacker News new | ask | show | jobs
by DJBunnies 2038 days ago
== is loose type.

=== is strict.

1 comments

Is there any way to force the use of ===
Write `===` when you want to compare things.

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

    declare(scrict_types=1);
That isn’t what that does.
Enforce by code style tools.