Inspectopedia
 
2024.3

Redundant intersection type

Info
New
Last modified: 03 December 2024

Reports the intersection type declarations that contain redundant types, for example, an intersection type that contains both the parent class and its subclass.

See PHP RFC: Pure intersection types (php.net) for details.