bug80391.phpt 479 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Iterable not covariant to mixed
  3. --FILE--
  4. <?php
  5. class A {
  6. public function method1(): mixed {}
  7. public function method2(): array|object {}
  8. public function method3(iterable $x) {}
  9. public function method4(iterable $x) {}
  10. }
  11. class B extends A {
  12. public function method1(): iterable {}
  13. public function method2(): iterable {}
  14. public function method3(mixed $x) {}
  15. public function method4(array|object $x) {}
  16. }
  17. ?>
  18. ===DONE===
  19. --EXPECT--
  20. ===DONE===