Type declaration is redundant and could be simplified
Reports union type declarations that contain redundant types, for example, a union type that contains both the class alias and the original class.
See Union Types RFC: Duplicate and redundant types (php.net) for details.
Inspection Details | |
---|---|
Available in: | PhpStorm 2023.3, Qodana for PHP 2023.3 |
Plugin: | PHP, 233.SNAPSHOT |
Last modified: 13 July 2023