Am 26.12.2017 um 14:38 schrieb Sebastian Bergmann:
Thank you, Richard, for working on this. I spent a lot of time this year introducing scalar type declarations into existing code bases. In quite a few cases I was not able to do so because the existing code works with parameters that can be of two or more scalar types. With PHP 7.2, I can only document this outside of the code using @param annotations (until the code has been refactored to work with only one parameter type). With a "scalar" type declaration I would not have to fall back to @param annotations and could express the type in actual syntax
https://wiki.php.net/rfc/union_types sebastian (sebastian) - voted NO would you mind to explain this? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php