xref: /PHP-8.3/Zend/tests/traits/bug54441.phpt (revision 2c5fcd57)
1--TEST--
2Bug #54441 (Changing trait static method visibility)
3--FILE--
4<?php
5
6trait Foo {
7  public function bar() {}
8}
9
10class Boo {
11  use Foo {
12    bar as dontKnow;
13    dontKnow as protected;
14  }
15}
16
17?>
18--EXPECTF--
19Fatal error: The modifiers of the trait method dontKnow() are changed, but this method does not exist. Error in %s on line %d
20