DEV Community

loading...

Discussion on: Don't return associative arrays!

hasnayeen profile image
Nehal Hasnayeen

Well you can pass a null to method in PHP also. php.net/manual/en/migration71.new-...

Thread Thread
aleksikauppila profile image
Aleksi Kauppila Author • Edited

True. With an important note that the param has to be explicitly defined as nullable.