diff --git a/composer.json b/composer.json
index c260865a..3ff1072b 100644
--- a/composer.json
+++ b/composer.json
@@ -35,7 +35,7 @@
     "phpstan/phpstan-strict-rules": "^1.5.1",
     "phpunit/phpunit": "^10.3.5",
     "psalm/plugin-phpunit": "~0.18.4",
-    "rector/rector": "~0.18.3",
+    "rector/rector": "~0.18.4",
     "vimeo/psalm": "^5.15.0"
   },
   "autoload": {
diff --git a/composer.lock b/composer.lock
index 7091cd8a..3863a488 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "73b38b94441146e52fc62e2dfdc2d3c1",
+    "content-hash": "015002069f03582b34636cbedaf0d303",
     "packages": [],
     "packages-dev": [
         {
@@ -3692,16 +3692,16 @@
         },
         {
             "name": "rector/rector",
-            "version": "0.18.3",
+            "version": "0.18.4",
             "source": {
                 "type": "git",
                 "url": "https://github.com/rectorphp/rector.git",
-                "reference": "ba7988e3e028e68e07191d75b0d5473ac320c5e7"
+                "reference": "d99a91176b7eb7f2b6d509a6486b3661c6dfd370"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/rectorphp/rector/zipball/ba7988e3e028e68e07191d75b0d5473ac320c5e7",
-                "reference": "ba7988e3e028e68e07191d75b0d5473ac320c5e7",
+                "url": "https://api.github.com/repos/rectorphp/rector/zipball/d99a91176b7eb7f2b6d509a6486b3661c6dfd370",
+                "reference": "d99a91176b7eb7f2b6d509a6486b3661c6dfd370",
                 "shasum": ""
             },
             "require": {
@@ -3736,7 +3736,7 @@
             ],
             "support": {
                 "issues": "https://github.com/rectorphp/rector/issues",
-                "source": "https://github.com/rectorphp/rector/tree/0.18.3"
+                "source": "https://github.com/rectorphp/rector/tree/0.18.4"
             },
             "funding": [
                 {
@@ -3744,7 +3744,7 @@
                     "type": "github"
                 }
             ],
-            "time": "2023-09-12T20:18:14+00:00"
+            "time": "2023-09-25T17:07:54+00:00"
         },
         {
             "name": "sanmai/later",
@@ -6506,5 +6506,5 @@
     "platform-overrides": {
         "php": "8.1.0"
     },
-    "plugin-api-version": "2.6.0"
+    "plugin-api-version": "2.3.0"
 }