Skip to content

Bump dev dependencies, PHPUnit 13 - #385

Merged
TomasVotruba merged 1 commit into
mainfrom
bump-dev-deps
Jul 30, 2026
Merged

Bump dev dependencies, PHPUnit 13#385
TomasVotruba merged 1 commit into
mainfrom
bump-dev-deps

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

composer update + vendor/bin/jack raise-to-installed, with PHPUnit taken from 11.5 to 13.

 "require-dev": {
-    "phpstan/phpstan": "^2.1.33",
+    "phpstan/phpstan": "^2.2",
-    "phpunit/phpunit": "^11.5",
+    "phpunit/phpunit": "^13.2",
-    "rector/jack": "^0.5.1",
+    "rector/jack": "^1.0",
-    "rector/swiss-knife": "^2.3",
+    "rector/swiss-knife": "^2.4",
-    "symplify/easy-coding-standard": "^13.0",
+    "symplify/easy-coding-standard": "^13.2",
-    "symplify/phpstan-rules": "^14.9",
+    "symplify/phpstan-rules": "^14.12",
-    "tracy/tracy": "^2.11"
+    "tracy/tracy": "^2.12"
 }

PHPUnit 13 pulls sebastian/diff 9, which needs rector-src 04b18f6 or newer (rectorphp/rector-src#8220).

Two PHP 8.5 tests were running on every PHP version

PHPUnit 13 no longer honours a RequiresPhp version that has no comparison operator - it warns and ignores the requirement, so the PHP 8.5 only fixtures got parsed on 8.4 and blew up with Syntax error, unexpected T_VARIABLE.

-    #[RequiresPhp('8.5')]
+    #[RequiresPhp('>= 8.5.0')]
-    #[RequiresPhp('>= 8.5')]
+    #[RequiresPhp('>= 8.5.0')]

The second one also needed the patch level - >= 8.5 alone is reported as incomplete.

Formatting

The remaining 16 files are composer fix-cs output for the newer easy-coding-standard - union type spacing, static fn, and ! spacing:

-        return array_all($classMethod->params, fn(Param $param): bool => !$param->type instanceof Node);
+        return array_all($classMethod->params, static fn (Param $param): bool => ! $param->type instanceof Node);

Run composer update and vendor/bin/jack raise-to-installed, then
composer fix-cs for the newer easy-coding-standard rules.

PHPUnit 13 ignores a RequiresPhp version without a comparison
operator, which made the PHP 8.5 only tests run everywhere.
@TomasVotruba
TomasVotruba merged commit f154b8b into main Jul 30, 2026
9 checks passed
@TomasVotruba
TomasVotruba deleted the bump-dev-deps branch July 30, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant