Skip to content

0.12.64

Choose a tag to compare

@ondrejmirtes ondrejmirtes released this 21 Dec 12:03
0.12.64
23eb1cb

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 🤖