<?php trait FooTrait { public static function foo() { var_dump(self::BAR); } } class Baz { const BAR = 42; use FooTrait; } Baz::foo();
You have javascript disabled. You will not be able to edit any code.