File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 44
55use Doctrine \DBAL \Connection ;
66use PHPStan \Doctrine \Driver \DriverDetector ;
7- use PHPStan \Type \Accessory \AccessoryNumericStringType ;
87use PHPStan \Type \IntegerType ;
9- use PHPStan \Type \IntersectionType ;
10- use PHPStan \Type \StringType ;
118use PHPStan \Type \Type ;
129use PHPStan \Type \TypeCombinator ;
1310use function in_array ;
Original file line number Diff line number Diff line change @@ -1815,8 +1815,8 @@ private function inferPlusMinusTimesType(array $termTypes): Type
18151815 if ($ this ->containsOnlyTypes ($ unionWithoutNull , [new IntegerType (), $ this ->createNumericString (false )])) {
18161816 return $ this ->createNumericString (
18171817 $ nullable ,
1818- $ unionWithoutNull ->isLowercaseString ()->yes (),
1819- $ unionWithoutNull ->isUppercaseString ()->yes ()
1818+ $ unionWithoutNull ->toString ()-> isLowercaseString ()->yes (),
1819+ $ unionWithoutNull ->toString ()-> isUppercaseString ()->yes ()
18201820 );
18211821 }
18221822
@@ -1899,8 +1899,8 @@ private function inferDivisionType(array $termTypes): Type
18991899 if ($ this ->containsOnlyTypes ($ unionWithoutNull , [new IntegerType (), $ this ->createNumericString (false )])) {
19001900 return $ this ->createNumericString (
19011901 $ nullable ,
1902- $ unionWithoutNull ->isLowercaseString ()->yes (),
1903- $ unionWithoutNull ->isUppercaseString ()->yes ()
1902+ $ unionWithoutNull ->toString ()-> isLowercaseString ()->yes (),
1903+ $ unionWithoutNull ->toString ()-> isUppercaseString ()->yes ()
19041904 );
19051905 }
19061906
You can’t perform that action at this time.
0 commit comments