You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting an Access to an uninitialized readonly property error with the following code. @phpstan-ignore-line is also not working. But, the error goes away when I change the constructor argument from an interface (TimeRangeInterface) to a concrete object (Foo).
Bug report
I am getting an
Access to an uninitialized readonly property
error with the following code.@phpstan-ignore-line
is also not working. But, the error goes away when I change the constructor argument from an interface (TimeRangeInterface
) to a concrete object (Foo
).Code snippet that reproduces the problem
https://phpstan.org/r/ca78225c-837f-474d-9377-c58d7fc9d764
No error with concrete class
https://phpstan.org/r/89b52a30-4588-45e8-b43d-90e0fd322cff
Expected output
The code should pass validation without errors.
The text was updated successfully, but these errors were encountered: