From fabec7d3d20927834f8589e0d06f0748dceffaf5 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Sun, 1 Mar 2026 00:38:42 +0000 Subject: [PATCH 1/2] [automated] Update Rector Dependencies --- composer.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.lock b/composer.lock index 8717040a..69a9a5a7 100644 --- a/composer.lock +++ b/composer.lock @@ -3514,12 +3514,12 @@ "source": { "type": "git", "url": "https://github.com/rectorphp/rector.git", - "reference": "868d2da0ded4f0816cf73b69a57a39eb270993a8" + "reference": "393f026b11d95cb2c7e70e1c6107bff05a906213" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/868d2da0ded4f0816cf73b69a57a39eb270993a8", - "reference": "868d2da0ded4f0816cf73b69a57a39eb270993a8", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/393f026b11d95cb2c7e70e1c6107bff05a906213", + "reference": "393f026b11d95cb2c7e70e1c6107bff05a906213", "shasum": "" }, "require": { @@ -3567,7 +3567,7 @@ "type": "github" } ], - "time": "2026-02-26T17:05:59+00:00" + "time": "2026-02-28T18:36:03+00:00" }, { "name": "samsonasik/array-lookup", From d014b07173c065282ace39e23c8537997ba3519c Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 1 Mar 2026 00:39:18 +0000 Subject: [PATCH 2/2] [rector] Rector fixes --- src/RuleFilter/ValueObject/RectorSet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RuleFilter/ValueObject/RectorSet.php b/src/RuleFilter/ValueObject/RectorSet.php index 5a3ca03c..9a1c9bea 100644 --- a/src/RuleFilter/ValueObject/RectorSet.php +++ b/src/RuleFilter/ValueObject/RectorSet.php @@ -18,7 +18,7 @@ public function __construct( private array $rectorClasses, ) { // only allowed, to keep BC - if (! in_array($name, ['phpunit/phpunit 11.0', 'doctrine/dbal 2.10'])) { + if (! in_array($name, ['phpunit/phpunit 11.0', 'doctrine/dbal 2.10'], true)) { Assert::notEmpty($rectorClasses, 'Set ' . $name . ' has no rules'); } }