Skip to content

Commit f33a8d1

Browse files
Fixes
1 parent 05aa9a2 commit f33a8d1

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/Type/Doctrine/Descriptors/BigIntType.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace PHPStan\Type\Doctrine\Descriptors;
44

55
use Composer\InstalledVersions;
6-
use PHPStan\Type\Accessory\AccessoryNumericStringType;
76
use PHPStan\Type\IntegerType;
87
use PHPStan\Type\StringType;
98
use PHPStan\Type\Type;

tests/Type/Doctrine/Query/QueryResultTypeWalkerHydrationModeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public static function getTestData(): iterable
142142

143143
yield 'getResult(object), fields' => [
144144
self::list(self::constantArray([
145-
[new ConstantStringType('decimalColumn'), self::numericString()],
145+
[new ConstantStringType('decimalColumn'), self::numericString(false, true)],
146146
[new ConstantStringType('floatColumn'), new FloatType()],
147147
])),
148148
'
@@ -178,7 +178,7 @@ public static function getTestData(): iterable
178178

179179
yield 'toIterable(object), fields' => [
180180
new IterableType(new IntegerType(), self::constantArray([
181-
[new ConstantStringType('decimalColumn'), self::numericString()],
181+
[new ConstantStringType('decimalColumn'), self::numericString(false, true)],
182182
[new ConstantStringType('floatColumn'), new FloatType()],
183183
])),
184184
'

tests/Type/Doctrine/Query/QueryResultTypeWalkerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public function getTestData(): iterable
378378
]),
379379
$this->constantArray([
380380
[new ConstantIntegerType(0), new ObjectType(One::class)],
381-
[new ConstantStringType('id'), $hasDbal4 ? new IntegerType() : $this->numericString()],
381+
[new ConstantStringType('id'), $hasDbal4 ? new IntegerType() : $this->numericString(true, true)],
382382
[new ConstantStringType('intColumn'), new IntegerType()],
383383
])
384384
),
@@ -400,7 +400,7 @@ public function getTestData(): iterable
400400
]),
401401
$this->constantArray([
402402
[new ConstantIntegerType(0), new ObjectType(Many::class)],
403-
[new ConstantStringType('id'), $hasDbal4 ? new IntegerType() : $this->numericString()],
403+
[new ConstantStringType('id'), $hasDbal4 ? new IntegerType() : $this->numericString(true, true)],
404404
[new ConstantStringType('intColumn'), new IntegerType()],
405405
])
406406
),
@@ -421,7 +421,7 @@ public function getTestData(): iterable
421421
]),
422422
$this->constantArray([
423423
[new ConstantStringType('one'), new ObjectType(One::class)],
424-
[new ConstantStringType('id'), $hasDbal4 ? new IntegerType() : $this->numericString()],
424+
[new ConstantStringType('id'), $hasDbal4 ? new IntegerType() : $this->numericString(true, true)],
425425
[new ConstantStringType('intColumn'), new IntegerType()],
426426
])
427427
),
@@ -531,7 +531,7 @@ public function getTestData(): iterable
531531
yield 'just root entity and scalars' => [
532532
$this->constantArray([
533533
[new ConstantIntegerType(0), new ObjectType(One::class)],
534-
[new ConstantStringType('id'), $hasDbal4 ? new IntegerType() : $this->numericString()],
534+
[new ConstantStringType('id'), $hasDbal4 ? new IntegerType() : $this->numericString(true, true)],
535535
]),
536536
'
537537
SELECT o, o.id

0 commit comments

Comments
 (0)