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
if a __construct has promoted properties, this should imply @psalm-consistent-constructor
@psalm-consistent-constructor should report errors not only for the type but also for promoted properties (or the lack thereof in the implementing class), since you'd end up with uninitialized(string) in the example above otherwise.
The text was updated successfully, but these errors were encountered:
Psalm output (using commit 3600d51):
INFO: Trace - 22:23 - $x: string
INFO: Trace - 25:23 - $y: string
INFO: UnusedVariable - 21:1 - $x is never referenced or the value is not used
INFO: UnusedVariable - 24:1 - $y is never referenced or the value is not used
https://psalm.dev/r/2176853490
if a __construct has promoted properties, this should imply @psalm-consistent-constructor
@psalm-consistent-constructor should report errors not only for the type but also for promoted properties (or the lack thereof in the implementing class), since you'd end up with
uninitialized(string)
in the example above otherwise.The text was updated successfully, but these errors were encountered: