No Title Text for this slide yet
9/35
Readonly Classes
static
return type
mixed
array|bool|callable|int|float|null|object|resource|string
•
Distinguishes between:
•
I didn't add the type yet
•
It really accepts any value
•
Acts as a union type
•
Follows standard variance rules
•
A missing return type declaration is assumed to be:
mixed|void