Skip to content

Commit 07f1a98

Browse files
Try fix
1 parent e2ccce1 commit 07f1a98

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/Type/Doctrine/Descriptors/FloatType.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44

55
use Doctrine\DBAL\Connection;
66
use PHPStan\Doctrine\Driver\DriverDetector;
7-
use PHPStan\Type\Accessory\AccessoryNumericStringType;
87
use PHPStan\Type\IntegerType;
9-
use PHPStan\Type\IntersectionType;
10-
use PHPStan\Type\StringType;
118
use PHPStan\Type\Type;
129
use PHPStan\Type\TypeCombinator;
1310
use function in_array;

src/Type/Doctrine/Query/QueryResultTypeWalker.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)