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
Since PHP 8.4, properties can be declared final, either explicitly or implicitly through private(set). Making an existing property final breaks every child class that redeclares it:
The tool currently reports nothing for this change. Methods have MethodBecameFinal and constants have ClassConstantBecameFinal, but there is no equivalent check for properties.
ReflectionProperty#isFinal() from BetterReflection already accounts for the implicit final of private(set) properties. The check would only need to run for public and protected properties of non-final classes and for trait properties, since properties of a final class can't be redeclared anyway.
Activity