github phpstan/phpstan 0.12.64

latest releases: 1.10.67, 1.10.66, 1.10.65...
3 years ago

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 🤖

Don't miss a new phpstan release

NewReleases is sending notifications on new releases.