Den 2022-04-08 kl. 18:47, skrev G. P. B.:
I would like to open the discussion on the RFC to add true as a type.
Now that null and false can be used as standalone types, I think it makes a
lot of sense to add true as a value type for the sake of completeness with
It also has many use cases within internals and userland to declare proper
type signatures to functions and methods.
George P. Banyard
Finally, I have been waiting for this :) Two comments:
- Would be nice to have an example / UC that shows the value of true as
a type in the RFC.
- Should one have a link to the earlier discussion about this type,
either in the RFC or in the announcement on the internals list?
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php