Video wird geladen...
Video konnte nicht geladen werden
Always use === instead of ==. Less surprises, more sanity.
13,569 Aufrufe • vor 1 Jahr •via X (Twitter)
10 Kommentare

Jay Akinvor 1 Jahr
If you have a fail-over internet line, why not use both at the same time?

Christopher Millervor 1 Jahr
But what if I really want to compare 0 to foobar to be true in php7 😱 🤣🤣

Daniel 🌵vor 1 Jahr
💯

Christoffer Hallasvor 1 Jahr
Hey Nuno. Do you think PHP should have a mode that disables implicit type casting?

Nuno Madurovor 1 Jahr
phpstan already "forbids" those things

filip.pacurar ⚡vor 1 Jahr
I liked that you said "as a human" then "as a programmer" => as in programmer !== human 😂

Nuno Madurovor 1 Jahr
ahahh, well, you know 😁

Aivis Silinsvor 1 Jahr
And always ‘declare(strict_types=1);’! :)

freek 🦠vor 1 Jahr
=== for security == just for fun

Unnamed1vor 1 Jahr
Hehe will Laravel 12 switch to strict mode? 😅
