ovr / phpsa

Smart/Static Analyzer(sis) for PHP :bowtie::neckbeard:
Other
637 stars 77 forks source link

Fixed E_NOTICE: Undefined property in UnexpectedUseOfThis.php #286

Closed algo13 closed 7 years ago

algo13 commented 7 years ago
class C
{
    public function f()
    {
        unset($_GET[0]);
    }
}

PHP Notice: Undefined property: PhpParser\Node\Expr\ArrayDimFetch::$name in src/Analyzer/Pass/Statement/UnexpectedUseOfThis.php on line 186

ovr commented 7 years ago

Thanks, merged to master by cherry-pick with small edit about code style https://github.com/ovr/phpsa/commit/df9e82e242173c5571fb224a39cb30a5be8a838f

Please avoid merge commits inside your PR's branches

Thanks