mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
3c2f4eae47
* [TypeDeclaration] Fixes #5137 [WIP] Add FlipTypeControlToUseExclusiveTypeRector * adding test * checking types * define instanceof * define instanceof * refactor use Identical node * functional * phpstan * rectify * BooleanNot * phpstan * skip not null compare * skip no assign * skip no var tag * skip multi types * skip assign different var * test interface type * skip not null doc * skip array * skip no doc * skip not union * cs fix * cs fix * fix example Co-authored-by: Tomas Votruba <tomas.vot@gmail.com> * remove doc as well * cs * cs * cs * phpstan * clean up * use instanceof IdentifierTypeNode check * failing fixture skip string type * Revert "use instanceof IdentifierTypeNode check" This reverts commit aa046dff740b621e881d27e3a51e3a3a3c73a59c. Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>