php-8.0.30-src/Zend/tests/traits/abstract_method_7.phpt

24 lines
368 B
PHP

--TEST--
Abstract private trait method forwarded as abstract protected method
--FILE--
<?php
trait T {
abstract private function method(int $a, string $b);
}
abstract class C {
use T;
abstract protected function method(int $a, string $b);
}
class D extends C {
protected function method(int $a, string $b) {}
}
?>
===DONE===
--EXPECT--
===DONE===