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 4
4
5
5
use Doctrine \DBAL \Connection ;
6
6
use PHPStan \Doctrine \Driver \DriverDetector ;
7
- use PHPStan \Type \Accessory \AccessoryNumericStringType ;
8
7
use PHPStan \Type \IntegerType ;
9
- use PHPStan \Type \IntersectionType ;
10
- use PHPStan \Type \StringType ;
11
8
use PHPStan \Type \Type ;
12
9
use PHPStan \Type \TypeCombinator ;
13
10
use function in_array ;
Original file line number Diff line number Diff line change @@ -1815,8 +1815,8 @@ private function inferPlusMinusTimesType(array $termTypes): Type
1815
1815
if ($ this ->containsOnlyTypes ($ unionWithoutNull , [new IntegerType (), $ this ->createNumericString (false )])) {
1816
1816
return $ this ->createNumericString (
1817
1817
$ nullable ,
1818
- $ unionWithoutNull ->isLowercaseString ()->yes (),
1819
- $ unionWithoutNull ->isUppercaseString ()->yes ()
1818
+ $ unionWithoutNull ->toString ()-> isLowercaseString ()->yes (),
1819
+ $ unionWithoutNull ->toString ()-> isUppercaseString ()->yes ()
1820
1820
);
1821
1821
}
1822
1822
@@ -1899,8 +1899,8 @@ private function inferDivisionType(array $termTypes): Type
1899
1899
if ($ this ->containsOnlyTypes ($ unionWithoutNull , [new IntegerType (), $ this ->createNumericString (false )])) {
1900
1900
return $ this ->createNumericString (
1901
1901
$ nullable ,
1902
- $ unionWithoutNull ->isLowercaseString ()->yes (),
1903
- $ unionWithoutNull ->isUppercaseString ()->yes ()
1902
+ $ unionWithoutNull ->toString ()-> isLowercaseString ()->yes (),
1903
+ $ unionWithoutNull ->toString ()-> isUppercaseString ()->yes ()
1904
1904
);
1905
1905
}
1906
1906
You can’t perform that action at this time.
0 commit comments