--TEST-- Bug #76539 (Trait attribute is set incorrectly when using self::class with another string) --FILE-- attr, PHP_EOL; } } class A { use MyTrait; } class B { use MyTrait; } (new A())->test(); (new B())->test(); ?> --EXPECT-- ATest BTest