Inspectopedia
 
2024.3

'set' visibility can be removed

Info
New
Last modified: 03 December 2024

Reports a set visibility that equals property visibility and can therefore be omitted.

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