php-src/Zend/tests/bug76451.phpt
Nikita Popov afec3a9208 Avoid early-binding on unresolved types
Fixes bug #76451, and more importantly lays necessary groundwork for
covariant/contravariant types. Bug #76451 is just an edge case, but
once covariance is introduced this will become a common problem instead.
2019-05-24 09:30:13 +02:00

17 lines
277 B
PHP

--TEST--
Bug #76451: Aliases during inheritance type checks affected by opcache
--FILE--
<?php
require __DIR__ . "/bug76451.inc";
class A {
public function test(Foo $foo) {}
}
class B extends A {
public function test(Bar $foo) {}
}
?>
===DONE===
--EXPECT--
===DONE===