Skip to content

兄弟,在PHP5.6下,为啥报错呢?Parse error: syntax error, unexpected '$this' #5

@nottellyou

Description

@nottellyou

Parse error: syntax error, unexpected '$this' (T_VARIABLE) in F:\0000000000000\php\curl\vendor\jshensh\php-curl-class\src\Multi.php on line 38:

    private function getChGenerator()
    {
        yield from $this->clientArr;   //这一句在php5.6.27下有问题吗?看不出来
    }

如何解决呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions