File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
tests/Type/Doctrine/Query Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1717use PHPStan \Type \Accessory \AccessoryArrayListType ;
1818use PHPStan \Type \Accessory \AccessoryLowercaseStringType ;
1919use PHPStan \Type \Accessory \AccessoryNumericStringType ;
20+ use PHPStan \Type \Accessory \AccessoryUppercaseStringType ;
2021use PHPStan \Type \ArrayType ;
2122use PHPStan \Type \Constant \ConstantArrayTypeBuilder ;
2223use PHPStan \Type \Constant \ConstantFloatType ;
@@ -1623,7 +1624,7 @@ private function constantArray(array $elements): Type
16231624 return $ builder ->getArray ();
16241625 }
16251626
1626- private function numericString (bool $ lowercase = false ): Type
1627+ private function numericString (bool $ lowercase = false , bool $ uppercase = false ): Type
16271628 {
16281629 $ types = [
16291630 new StringType (),
@@ -1632,6 +1633,9 @@ private function numericString(bool $lowercase = false): Type
16321633 if ($ lowercase ) {
16331634 $ types [] = new AccessoryLowercaseStringType ();
16341635 }
1636+ if ($ uppercase ) {
1637+ $ types [] = new AccessoryUppercaseStringType ();
1638+ }
16351639
16361640 return new IntersectionType ($ types );
16371641 }
You can’t perform that action at this time.
0 commit comments