blob: 5b7db228744c167aef3da440be7678d07b36a16f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--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===
|