1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 15:08:16 +02:00
Files
archived-php-src/Zend/tests/traits/abstract_method_4.phpt
T

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===