DEV Community

Discussion on: All the changes that come with PHP 7.4

Collapse
 
marinabsa profile image
Marina A.

Oh nevermind, I see what you mean now. In my head you meant to check if it is an instance in the first place , but you are looking for the case that it isn’t in order to throw an Exception.

Collapse
 
xoubaman profile image
Carlos Gándara

Actually, my assumption was not correct, I have removed the example. Sorry for the confusion.

Collapse
 
xoubaman profile image
Carlos Gándara • Edited

Exactly. But not needed anymore :D

UPDATE: Actually no, the example was not correct :(