Skip to content

Commit 4c8a2c7

Browse files
Merge branch '9.6' into 10.5
* 9.6: Fix CS/WS issues Update tools
2 parents 051ec75 + 6fd565b commit 4c8a2c7

9 files changed

Lines changed: 16 additions & 16 deletions

File tree

.phive/phars.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
33
<phar name="phpab" version="^1.29" installed="1.29.4" location="./tools/phpab" copy="true"/>
4-
<phar name="php-cs-fixer" version="^3.94" installed="3.94.2" location="./tools/php-cs-fixer" copy="true"/>
4+
<phar name="php-cs-fixer" version="^3.94" installed="3.95.1" location="./tools/php-cs-fixer" copy="true"/>
55
<phar name="psalm" version="^5.26" installed="5.26.1" location="./tools/psalm" copy="true"/>
66
<phar name="humbug/php-scoper" version="^0.18" installed="0.18.19" location="./tools/php-scoper" copy="true"/>
7-
<phar name="composer" version="^2.8" installed="2.9.5" location="./tools/composer" copy="true"/>
7+
<phar name="composer" version="^2.8" installed="2.10.0-RC1" location="./tools/composer" copy="true"/>
88
</phive>

src/Framework/Assert.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2326,7 +2326,7 @@ private static function isNativeType(string $type): bool
23262326
{
23272327
return match ($type) {
23282328
'numeric', 'integer', 'int', 'iterable', 'float', 'string', 'boolean', 'bool', 'null', 'array', 'object', 'resource', 'scalar' => true,
2329-
default => false,
2329+
default => false,
23302330
};
23312331
}
23322332
}

src/Framework/Constraint/Constraint.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,10 @@ protected function valueToTypeStringFragment(mixed $value): string
255255
}
256256

257257
return match ($type) {
258-
'array', 'integer', 'object' => 'an ' . $type . ' ',
258+
'array', 'integer', 'object' => 'an ' . $type . ' ',
259259
'boolean', 'closed resource', 'float', 'resource', 'string' => 'a ' . $type . ' ',
260-
'null' => 'null ',
261-
default => 'a value of ' . $type . ' ',
260+
'null' => 'null ',
261+
default => 'a value of ' . $type . ' ',
262262
};
263263
}
264264
}

src/Framework/Constraint/Type/IsType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ final class IsType extends Constraint
117117
];
118118

119119
/**
120-
* @psalm-var 'array'|'boolean'|'bool'|'double'|'float'|'integer'|'int'|'null'|'numeric'|'object'|'real'|'resource'|'resource (closed)'|'string'|'scalar'|'callable'|'iterable'
120+
* @psalm-var 'array'|'bool'|'boolean'|'callable'|'double'|'float'|'int'|'integer'|'iterable'|'null'|'numeric'|'object'|'real'|'resource (closed)'|'resource'|'scalar'|'string'
121121
*/
122122
private readonly string $type;
123123

src/Metadata/Parser/Annotation/DocBlock.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ final class DocBlock
5353
private readonly array $symbolAnnotations;
5454

5555
/**
56-
* @psalm-var null|(array{
56+
* @psalm-var null|(array<
57+
* string,
58+
* array<int|string, string>|array{constraint: string}|array{version: string, operator: string}|string
59+
* >&array{
5760
* __OFFSET: array<string, int>&array{__FILE: string},
5861
* setting?: array<string, string>,
5962
* extension_versions?: array<string, array{version: string, operator: string}>
60-
* }&array<
61-
* string,
62-
* string|array{version: string, operator: string}|array{constraint: string}|array<int|string, string>
63-
* >)
63+
* })
6464
*/
6565
private ?array $parsedRequirements = null;
6666
private readonly int $startLine;

src/Util/VersionComparisonOperator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
final class VersionComparisonOperator
2020
{
2121
/**
22-
* @psalm-var '<'|'lt'|'<='|'le'|'>'|'gt'|'>='|'ge'|'=='|'='|'eq'|'!='|'<>'|'ne'
22+
* @psalm-var '!='|'<'|'<='|'<>'|'='|'=='|'>'|'>='|'eq'|'ge'|'gt'|'le'|'lt'|'ne'
2323
*/
2424
private readonly string $operator;
2525

tests/unit/Framework/AssertTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2292,8 +2292,8 @@ protected static function sameValues(): array
22922292
[-INF, -INF],
22932293
// arrays
22942294
[[], []],
2295-
[[0 => 1], [0 => 1]],
2296-
[[0 => null], [0 => null]],
2295+
[[0 => 1], [0 => 1]],
2296+
[[0 => null], [0 => null]],
22972297
[['a', 'b' => [1, 2]], ['a', 'b' => [1, 2]]],
22982298
// objects
22992299
[$object, $object],
@@ -2355,7 +2355,7 @@ protected static function notEqualValues(): array
23552355
[[], [0 => 1]],
23562356
[[0 => 1], []],
23572357
[[0 => null], []],
2358-
[[0 => 1, 1 => 2], [0 => 1, 1 => 3]],
2358+
[[0 => 1, 1 => 2], [0 => 1, 1 => 3]],
23592359
[['a', 'b' => [1, 2]], ['a', 'b' => [2, 1]]],
23602360
// objects
23612361
[new SampleClass(4, 8, 15), new SampleClass(16, 23, 42)],

tools/composer

102 KB
Binary file not shown.

tools/php-cs-fixer

52.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)