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