We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
int<0, max>
1 parent 18ab94d commit 8a7896bCopy full SHA for 8a7896b
src/Type/Doctrine/HydrationModeReturnTypeResolver.php
@@ -7,6 +7,7 @@
7
use PHPStan\Type\Accessory\AccessoryArrayListType;
8
use PHPStan\Type\ArrayType;
9
use PHPStan\Type\BenevolentUnionType;
10
+use PHPStan\Type\IntegerRangeType;
11
use PHPStan\Type\IntegerType;
12
use PHPStan\Type\IterableType;
13
use PHPStan\Type\MixedType;
@@ -34,7 +35,7 @@ public function getMethodReturnTypeForHydrationMode(
34
35
if ($isVoidType->yes()) {
36
// A void query result type indicates an UPDATE or DELETE query.
37
// In this case all methods return the number of affected rows.
- return new IntegerType();
38
+ return IntegerRangeType::fromInterval(0, null);
39
}
40
41
if ($isVoidType->maybe()) {
0 commit comments