and it worked perfectly fine until upgrading to version v2.11.3. In the version v2.11.3 and v2.11.4 code snippet from below fails even though it shouldn't:
<?php
class WithProperty {
/** @var string */
public string $property;
}
class Test {
public function __construct() {
$withProperty = new WithProperty();
env($withProperty->property . '_OTHER');
}
}
Hey @simivar, thanks for the issue and sorry for the trouble. That was indeed a regression introduced in 2.11.3 (in #159). I've fixed it now and released it in 2.11.5. Hope that helps :-)
I had this PHPStan rule specified in my configuration:
and it worked perfectly fine until upgrading to version v2.11.3. In the version v2.11.3 and v2.11.4 code snippet from below fails even though it shouldn't: