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
These answer whether a property can be read/written from a given scope, taking into account visibility, asymmetric visibility (private(set)/protected(set), PHP 8.4), readonly state (a readonly property is writeable only from the permitted scope and only while uninitialized on the given $object), virtual/hooked properties (get-only hooks are not writeable), and interface/abstract properties.
Scope
Implement both methods in src/ReflectionProperty.php statically from the AST where possible: visibility flags, set-visibility, readonly, hook presence (get/set), virtual properties.
The $object-dependent part of isWriteable() (readonly initialization state) requires a live object — fall back to native reflection via the existing initialization/fallback mechanism in that case.
Validate $scope semantics: null = global scope; class-name scope including inherited/subclass scope rules — match native behavior exactly.
Activity