<?php class_alias('a', 'c'); use A as B; // duplicate hidden type function foo(array | iterable $b) {} // d8plicate type function foo2(a | b $b) {} // a and c are always considered distinct function foo3(a | c $b) {} // PHP is smarter than this poor usage of DNF function foo4((a & b) | (b & a) $b) {} ?>
You have javascript disabled. You will not be able to edit any code.