Implemented correct handling of static::$var