PhpStorm
 
Get PhpStorm
You are viewing the documentation for an earlier version of PhpStorm.

Code Inspection: Redundant intersection type

Last modified: 16 May 2022

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.