![]() To be more precise, a type of mixed would be equivalent to a Union Type of: array|bool|callable|int|float|null|object|resource|string You can only specify arbitrary union types in phpdoc annotations as shown in the following example: class Number array or Traversable via special iterable type.Type or null through the special ?Type syntax.Currently, PHP doesn’t support arbitrary union types, but it supports only two special union types: ![]() Union types accept values of several different types.
0 Comments
Leave a Reply. |