Skip to content

Commit 4b34846

Browse files
Wip
1 parent 0d88669 commit 4b34846

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"require": {
99
"php": "^7.2 || ^8.0",
10-
"phpstan/phpstan": "^1.12"
10+
"phpstan/phpstan": "1.12.6"
1111
},
1212
"conflict": {
1313
"doctrine/collections": "<1.0",

tests/Type/Doctrine/Query/QueryResultTypeWalkerHydrationModeTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use PHPStan\Php\PhpVersion;
1212
use PHPStan\Testing\PHPStanTestCase;
1313
use PHPStan\Type\Accessory\AccessoryArrayListType;
14+
use PHPStan\Type\Accessory\AccessoryLowercaseStringType;
1415
use PHPStan\Type\Accessory\AccessoryNumericStringType;
1516
use PHPStan\Type\ArrayType;
1617
use PHPStan\Type\Constant\ConstantArrayTypeBuilder;
@@ -312,6 +313,7 @@ private static function numericString(): Type
312313
{
313314
return new IntersectionType([
314315
new StringType(),
316+
new AccessoryLowercaseStringType(),
315317
new AccessoryNumericStringType(),
316318
]);
317319
}

tests/Type/Doctrine/Query/QueryResultTypeWalkerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use PHPStan\Php\PhpVersion;
1616
use PHPStan\Testing\PHPStanTestCase;
1717
use PHPStan\Type\Accessory\AccessoryArrayListType;
18+
use PHPStan\Type\Accessory\AccessoryLowercaseStringType;
1819
use PHPStan\Type\Accessory\AccessoryNumericStringType;
1920
use PHPStan\Type\ArrayType;
2021
use PHPStan\Type\Constant\ConstantArrayTypeBuilder;
@@ -1626,6 +1627,7 @@ private function numericString(): Type
16261627
{
16271628
return new IntersectionType([
16281629
new StringType(),
1630+
new AccessoryLowercaseStringType(),
16291631
new AccessoryNumericStringType(),
16301632
]);
16311633
}

0 commit comments

Comments
 (0)