github phpstan/phpstan 0.12.64

Major new feature 🚀

Dependent variables

PHPStan can now understand relationships between different variables. Cases like these are now understood correctly:

if ($debug) {
    $foo = 'bar';
}

if ($debug) {
    // previously: Variable $foo might not be defined.
    // now: no error
    echo $foo;
}

Additionally, this feature fixes all these issues: #801, #806, #1209, #1306, #1722, #1865, #2980, #3371, #3986

Bugfixes 🐛

Function signature fixes 🤖

latest releases: 0.12.90, 0.12.89, 0.12.88...
6 months ago