Skip to content

Commit 432c0da

Browse files
Merge branch '13.1'
* 13.1: Fix CS/WS issues Update tools
2 parents 3f66ca5 + b70bfef commit 432c0da

15 files changed

Lines changed: 46 additions & 45 deletions

File tree

.phive/phars.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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="humbug/php-scoper" version="^0.18" installed="0.18.19" location="./tools/php-scoper" copy="true"/>
6-
<phar name="composer" version="^2.8" installed="2.9.5" location="./tools/composer" copy="true"/>
6+
<phar name="composer" version="^2.8" installed="2.10.0-RC1" location="./tools/composer" copy="true"/>
77
</phive>

src/Framework/Constraint/Constraint.php

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

289289
return match ($type) {
290-
'array', 'integer' => 'an ' . $type . ' ',
290+
'array', 'integer' => 'an ' . $type . ' ',
291291
'boolean', 'closed resource', 'float', 'resource', 'string' => 'a ' . $type . ' ',
292-
'null' => 'null ',
293-
default => 'a value of ' . $type . ' ',
292+
'null' => 'null ',
293+
default => 'a value of ' . $type . ' ',
294294
};
295295
}
296296
}

src/TextUI/Output/TestDox/ResultPrinter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ private function colorizeMessageAndDiff(string $buffer, string $style): array
286286
$lines = [];
287287

288288
if ($buffer !== '') {
289-
$lines = array_map(\rtrim(...), explode(PHP_EOL, $buffer));
289+
$lines = array_map(rtrim(...), explode(PHP_EOL, $buffer));
290290
}
291291

292292
$message = [];

src/Util/Color.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
use function preg_split;
2626
use function sprintf;
2727
use function str_pad;
28+
use function strlen;
2829
use function strtr;
2930
use function trim;
3031

@@ -124,7 +125,7 @@ public static function colorizeTextBox(string $color, string $buffer, ?int $colu
124125

125126
assert($lines !== false && $lines !== []);
126127

127-
$maxBoxWidth = max(array_map(\strlen(...), $lines));
128+
$maxBoxWidth = max(array_map(strlen(...), $lines));
128129

129130
if ($columns !== null) {
130131
$maxBoxWidth = min($maxBoxWidth, $columns);

tests/_files/DataProviderDependencyVoidTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public static function provider(): iterable
2020
return [
2121
[0, 0],
2222
[1, 'b' => 1],
23-
['a' => 2, 'b' => 2],
24-
['b' => 3, 'a' => 3],
23+
['a' => 2, 'b' => 2],
24+
['b' => 3, 'a' => 3],
2525
];
2626
}
2727

tests/unit/Framework/Assert/assertEqualsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public static function notEqualValues(): array
197197
[[], [0 => 1]],
198198
[[0 => 1], []],
199199
[[0 => null], []],
200-
[[0 => 1, 1 => 2], [0 => 1, 1 => 3]],
200+
[[0 => 1, 1 => 2], [0 => 1, 1 => 3]],
201201
[['a', 'b' => [1, 2]], ['a', 'b' => [2, 1]]],
202202
// objects
203203
[new SampleClass(4, 8, 15), new SampleClass(16, 23, 42)],

tests/unit/Framework/Assert/assertSameTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public static function sameValues(): array
7171
[-INF, -INF],
7272
// arrays
7373
[[], []],
74-
[[0 => 1], [0 => 1]],
75-
[[0 => null], [0 => null]],
74+
[[0 => 1], [0 => 1]],
75+
[[0 => null], [0 => null]],
7676
[['a', 'b' => [1, 2]], ['a', 'b' => [1, 2]]],
7777
// objects
7878
[$object, $object],

tools/.phpstan/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require-dev": {
3-
"phpstan/phpstan": "^2.1.46",
3+
"phpstan/phpstan": "^2.1.47",
44
"phpstan/extension-installer": "^1.4.3",
55
"phpstan/phpstan-strict-rules": "^2.0.10",
66
"tomasvotruba/type-coverage": "^2.1.0",

tools/.phpstan/composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/.phpstan/vendor/composer/installed.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,12 @@
223223
},
224224
{
225225
"name": "phpstan/phpstan",
226-
"version": "2.1.46",
227-
"version_normalized": "2.1.46.0",
226+
"version": "2.1.47",
227+
"version_normalized": "2.1.47.0",
228228
"dist": {
229229
"type": "zip",
230-
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/a193923fc2d6325ef4e741cf3af8c3e8f54dbf25",
231-
"reference": "a193923fc2d6325ef4e741cf3af8c3e8f54dbf25",
230+
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/79015445d8bd79e62b29140f12e5bfced1dcca65",
231+
"reference": "79015445d8bd79e62b29140f12e5bfced1dcca65",
232232
"shasum": ""
233233
},
234234
"require": {
@@ -237,7 +237,7 @@
237237
"conflict": {
238238
"phpstan/phpstan-shim": "*"
239239
},
240-
"time": "2026-04-01T09:25:14+00:00",
240+
"time": "2026-04-13T15:49:08+00:00",
241241
"bin": [
242242
"phpstan",
243243
"phpstan.phar"

0 commit comments

Comments
 (0)