--TEST-- Direct access to static trait members is deprecated --FILE-- --EXPECTF-- Deprecated: Accessing static trait property T::$foo is deprecated, it should only be accessed on a class using the trait in %s on line %d Deprecated: Accessing static trait property T::$foo is deprecated, it should only be accessed on a class using the trait in %s on line %d int(42) Deprecated: Calling static trait method T::foo is deprecated, it should only be called on a class using the trait in %s on line %d Foo Deprecated: Calling static trait method T::bar is deprecated, it should only be called on a class using the trait in %s on line %d CallStatic(bar) Deprecated: Accessing static trait property T::$foo is deprecated, it should only be accessed on a class using the trait in %s on line %d Deprecated: Accessing static trait property T::$foo is deprecated, it should only be accessed on a class using the trait in %s on line %d int(42) Deprecated: Calling static trait method T::foo is deprecated, it should only be called on a class using the trait in %s on line %d Foo Deprecated: Calling static trait method T::bar is deprecated, it should only be called on a class using the trait in %s on line %d CallStatic(bar) int(42) Foo CallStatic(bar)