Re: Mixed type-hint
| From: | Robert Korulczyk | Date: | Fri, 08 Feb 2019 14:39:25 +0000 |
| Subject: | Re: Mixed type-hint | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-104315@lists.php.net to get a copy of this message | ||
> Could you clarify on a use-case for changing the semantics of
>
mixed?
For example storage which does not allow to store null. Like simple cache which treats null as
"miss", so it is not able to cache null as value.
Obviously it is not a deal breaker and use case is quite rare anyway, but this is just example when
mixed type-hint may work as actual type-hint, not
just replacement for PHPDoc or equivalent of... nothing.
Regards,
Robert Korulczyk