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 17
17
use PHPStan \Type \Accessory \AccessoryArrayListType ;
18
18
use PHPStan \Type \Accessory \AccessoryLowercaseStringType ;
19
19
use PHPStan \Type \Accessory \AccessoryNumericStringType ;
20
+ use PHPStan \Type \Accessory \AccessoryUppercaseStringType ;
20
21
use PHPStan \Type \ArrayType ;
21
22
use PHPStan \Type \Constant \ConstantArrayTypeBuilder ;
22
23
use PHPStan \Type \Constant \ConstantFloatType ;
@@ -1623,7 +1624,7 @@ private function constantArray(array $elements): Type
1623
1624
return $ builder ->getArray ();
1624
1625
}
1625
1626
1626
- private function numericString (bool $ lowercase = false ): Type
1627
+ private function numericString (bool $ lowercase = false , bool $ uppercase = false ): Type
1627
1628
{
1628
1629
$ types = [
1629
1630
new StringType (),
@@ -1632,6 +1633,9 @@ private function numericString(bool $lowercase = false): Type
1632
1633
if ($ lowercase ) {
1633
1634
$ types [] = new AccessoryLowercaseStringType ();
1634
1635
}
1636
+ if ($ uppercase ) {
1637
+ $ types [] = new AccessoryUppercaseStringType ();
1638
+ }
1635
1639
1636
1640
return new IntersectionType ($ types );
1637
1641
}
You can’t perform that action at this time.
0 commit comments