diff --git a/composer.json b/composer.json
index 3d4cea4f95629c5924ce916868381803134dc646..21f4c3b0cee9928fb949401bb3e0f49fa189fc4d 100644
--- a/composer.json
+++ b/composer.json
@@ -13,7 +13,7 @@
         "codeception/codeception": "~4.1.21",
         "codeception/module-asserts": "^1.3",
         "overtrue/phplint": "^3.0",
-        "phpstan/phpstan": "^1.7"
+        "phpstan/phpstan": "^1.8"
     },
     "require": {
         "php": "^7.2",
diff --git a/composer.lock b/composer.lock
index 70c1c16aef71c36b447b591f8859249066ac2595..fed4287ec42fd68729b05053c0a7335a18b39ee8 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": "a509730f82537f1faf0264b4c9246370",
+    "content-hash": "1e33133d5b5338062325db583d6e62a7",
     "packages": [
         {
             "name": "algo26-matthias/idna-convert",
@@ -5192,16 +5192,16 @@
         },
         {
             "name": "phpstan/phpstan",
-            "version": "1.7.15",
+            "version": "1.8.1",
             "source": {
                 "type": "git",
                 "url": "https://github.com/phpstan/phpstan.git",
-                "reference": "cd0202ea1b1fc6d1bbe156c6e2e18a03e0ff160a"
+                "reference": "8dbba631fa32f4b289404469c2afd6122fd61d67"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/cd0202ea1b1fc6d1bbe156c6e2e18a03e0ff160a",
-                "reference": "cd0202ea1b1fc6d1bbe156c6e2e18a03e0ff160a",
+                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/8dbba631fa32f4b289404469c2afd6122fd61d67",
+                "reference": "8dbba631fa32f4b289404469c2afd6122fd61d67",
                 "shasum": ""
             },
             "require": {
@@ -5227,7 +5227,7 @@
             "description": "PHPStan - PHP Static Analysis Tool",
             "support": {
                 "issues": "https://github.com/phpstan/phpstan/issues",
-                "source": "https://github.com/phpstan/phpstan/tree/1.7.15"
+                "source": "https://github.com/phpstan/phpstan/tree/1.8.1"
             },
             "funding": [
                 {
@@ -5247,7 +5247,7 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2022-06-20T08:29:01+00:00"
+            "time": "2022-07-12T16:08:06+00:00"
         },
         {
             "name": "phpunit/php-code-coverage",
@@ -6900,7 +6900,8 @@
         "ext-json": "*",
         "ext-pcre": "*",
         "ext-pdo": "*",
-        "ext-mbstring": "*"
+        "ext-mbstring": "*",
+        "ext-dom": "*"
     },
     "platform-dev": [],
     "plugin-api-version": "2.3.0"