php-src/Zend/tests/traits/abstract_method_4.phpt

21 lines
334 B
PHP

--TEST--
Visibility enforcement on abstract trait methods
--FILE--
<?php
trait T {
abstract public function method(int $a, string $b);
}
class C {
use T;
/* For backwards-compatibility reasons, visibility is not enforced here. */
private function method(int $a, string $b) {}
}
?>
===DONE===
--EXPECT--
===DONE===