File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
rules/Privatization/TypeManipulator Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1313 codeQuality: true ,
1414 codingStyle: true ,
1515 typeDeclarations: true ,
16+ typeDeclarationDocblocks: true ,
1617 privatization: true ,
1718 naming: true ,
1819 instanceOf: true ,
Original file line number Diff line number Diff line change 55namespace Rector \Privatization \TypeManipulator ;
66
77use PHPStan \Type \Accessory \AccessoryLiteralStringType ;
8+ use PHPStan \Type \Accessory \AccessoryNonEmptyStringType ;
89use PHPStan \Type \Accessory \AccessoryNonFalsyStringType ;
910use PHPStan \Type \ArrayType ;
1011use PHPStan \Type \BooleanType ;
@@ -57,7 +58,7 @@ public function generalizeConstantBoolTypes(Type $type): Type
5758 public function generalizeConstantTypes (Type $ type ): Type
5859 {
5960 return TypeTraverser::map ($ type , function (Type $ type , callable $ traverseCallback ): Type {
60- if ($ type instanceof AccessoryNonFalsyStringType || $ type instanceof AccessoryLiteralStringType) {
61+ if ($ type instanceof AccessoryNonFalsyStringType || $ type instanceof AccessoryLiteralStringType || $ type instanceof AccessoryNonEmptyStringType ) {
6162 return new StringType ();
6263 }
6364
You can’t perform that action at this time.
0 commit comments