Re:Union Types have been accepted for PHP 8
by GeneralTspoon on Saturday November 09, 2019 @06:52PM
(#21495366)
Regarding model properties - there’s a standard documentation syntax that can be used to document that and give you autocomplete in your IDE (Laravel IDE helper can also auto generate these for you).
Not ideal - since it’s not enforced in anyway (the same as local scope type doc declarations). But can be useful.
Not ideal - since it’s not enforced in anyway (the same as local scope type doc declarations). But can be useful.