PPlamenu
Sign in
Larry Garfield@Crell@phpc.social
21h

On empty return values. #PHP

https://www.garfieldtech.com/blog/empty-return-values

www.garfieldtech.comOn empty return values | GarfieldTech
1000
Open original page
BoostsQuotesFavs
Till Kleisli@kleisli@mastodon.social
21h

Replying to @Crell@phpc.social

@Crell it's 13 years later and you don't have to wrap is_null() around potential null values anymore. 😊 $mightBeNull?->doSomethingIfNotNull()

1000
Open original page
BoostsQuotesFavs
Larry Garfield@Crell@phpc.social
17h

Replying to @kleisli@mastodon.social

@kleisli It's still better to not have bulls if you can avoid them. :-)

And a false return is still flat out wrong.

Jul 5, 2026, 15:20 UTCen
0000
Open original page
BoostsQuotesFavs