Cannot modify property outside of 'set' visibility scope

Last modified: 03 December 2024

Reports a write access attempt to private(set) or protected(set) properties that are made outside of their set visibility scope.

Asymmetric visibility is supported in PHP 8.4 and later. For details, see PHP RFC: Asymmetric Visibility v2.