On Tue, Dec 26, 2017 at 10:56 AM, Sebastian Bergmann <sebast...@php.net> wrote: > Am 26.12.2017 um 16:46 schrieb li...@rhsoft.net: >> would you mind to explain this? > > "Foo|Bar", "array|string", etc. (still) make no sense to me. > > "scalar" makes sense to me although it is but an alias for > "bool|float|int|string". > Would you feel differently if we combined union types with type aliasing?
use Numeric = int | float; function foo(Numeric $bar) { ... } -Sara -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php