foo = self::A + $b; } public static function foo() { global $x; $x += self::A; } } class UniqueListLast extends UniqueList { public function __construct() { parent::__construct(self::B); } public static function bar() { parent::foo(); } } function test() { global $x; $x += 1; }