zephir-lang / zephir

Zephir is a compiled high-level language aimed to ease the creation of C-extensions for PHP

Home Page:https://zephir-lang.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

self::_default = new self() is can't run

529124368 opened this issue · comments

commented
class AutoRegister {
    public static _default;
    private path;
    public static function init(string path) ->void {
        let this->path = path;
        if self::_default === NULL {
            let self::_default = new self();
        }
    }

I can`t run these code. what wrong whith these code?

 if self::_default === NULL {
            let self::_default = new self();
        }
commented

sorry,I had know reason, because I can't use not static params in static function.