Inspectopedia
 
2024.3

Redundant assignment to promoted property

Info
New
Last modified: 03 December 2024

Reports redundant assignments to class properties that duplicate automatic assignments performed through promoted constructor parameters.

See Constructor Property Promotion (php.net) for details.