Skip to content

Commit 5433383

Browse files
committed
Merge branch '4.1.x' into 5.0.x
* 4.1.x: Fix iterable type errors Fix return type of iterateKeyValue() (doctrine#6402) Psalm 5.24.0 (doctrine#6401) PHPUnit 10.5.20 (doctrine#6400) PHPStan 1.11.1 (doctrine#6399)
2 parents a96c52c + 22f1d3a commit 5433383

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@
4040
"doctrine/coding-standard": "12.0.0",
4141
"fig/log-test": "^1",
4242
"jetbrains/phpstorm-stubs": "2023.2",
43-
"phpstan/phpstan": "1.10.67",
44-
"phpstan/phpstan-phpunit": "1.3.16",
45-
"phpstan/phpstan-strict-rules": "^1.5",
46-
"phpunit/phpunit": "10.5.9",
47-
"psalm/plugin-phpunit": "0.18.4",
43+
"phpstan/phpstan": "1.11.1",
44+
"phpstan/phpstan-phpunit": "1.4.0",
45+
"phpstan/phpstan-strict-rules": "^1.6",
46+
"phpunit/phpunit": "10.5.20",
47+
"psalm/plugin-phpunit": "0.19.0",
4848
"slevomat/coding-standard": "8.13.1",
4949
"squizlabs/php_codesniffer": "3.9.2",
5050
"symfony/cache": "^6.3.8|^7.0",
5151
"symfony/console": "^5.4|^6.3|^7.0",
52-
"vimeo/psalm": "5.21.1"
52+
"vimeo/psalm": "5.24.0"
5353
},
5454
"suggest": {
5555
"symfony/console": "For helpful console commands such as SQL execution and import of files."

phpstan.neon.dist

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
parameters:
22
level: 8
3-
phpVersion: 80200
3+
phpVersion: 80300
44
paths:
55
- src
66
- static-analysis
77
- tests
88
treatPhpDocTypesAsCertain: false
99
reportUnmatchedIgnoredErrors: false
10-
checkMissingIterableValueType: false
11-
checkGenericClassInNonGenericObjectType: false
1210
ignoreErrors:
11+
- identifier: missingType.generics
12+
1313
# https://github.com/phpstan/phpstan-strict-rules/issues/103
1414
-
1515
message: '~^Construct empty\(\) is not allowed. Use more strict comparison\.~'

src/Portability/Converter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private function createConvertAll(?Closure $function): Closure
244244
*
245245
* @param Closure $function The function that maps each value of the array
246246
*
247-
* @return Closure(array):array
247+
* @return Closure(array<mixed>):array<mixed>
248248
*/
249249
private function createMapper(Closure $function): Closure
250250
{

src/Result.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function iterateAssociative(): Traversable
178178
}
179179

180180
/**
181-
* @return Traversable<mixed,mixed>
181+
* @return Traversable<mixed, mixed>
182182
*
183183
* @throws Exception
184184
*/

tests/Functional/Types/JsonTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function testInsertAndSelect(): void
5959
self::assertSame($value2, $res2);
6060
}
6161

62-
/** @param array<scalar|array> $value */
62+
/** @param array<mixed> $value */
6363
private function insert(int $id, array $value): void
6464
{
6565
$result = $this->connection->insert('json_test_table', [
@@ -73,7 +73,7 @@ private function insert(int $id, array $value): void
7373
self::assertSame(1, $result);
7474
}
7575

76-
/** @return array<scalar|array> */
76+
/** @return array<mixed> */
7777
private function select(int $id): array
7878
{
7979
$value = $this->connection->fetchOne(

0 commit comments

Comments
 (0)