View Single Post
Old 03-04-2023, 11:05 AM  
redwhiteandblue
Bollocks
 
redwhiteandblue's Avatar
 
Industry Role:
Join Date: Jun 2007
Location: Bollocks
Posts: 2,792
Quote:
Originally Posted by k0nr4d View Post
It really depends on how you coded. There are behavioral changes that break code, needlessly. The biggest thing that pisses me off specifically, is that you can no longer do:

if($var) { ... }

Before, if $var was not set at all it was just false and didn't enter that. Worked for years and years. Now, that would throw a fatal error. You now have to do:

if(isset($var) && $var == true) { ... }

So it introduces alot of fatal errors where it wouldn't throw them before.
Intelliphense on VS Code will show that up as an error anyway, using a var before it's declared, so I no longer do it even though I don't code specifically for 8 yet.
redwhiteandblue is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote