1234567891011121314151617181920212223 |
- --TEST--
- Check for problems with case sensitivity in compositions
- --FILE--
- <?php
- error_reporting(E_ALL);
- trait A {
- public function M1() {}
- public function M2() {}
- }
- trait B {
- public function M1() {}
- public function M2() {}
- }
- class MyClass {
- use A;
- use B;
- }
- ?>
- --EXPECTF--
- Fatal error: Trait method B::M1 has not been applied as MyClass::M1, because of collision with A::M1 in %s on line %d
|