diff --git a/php/composer.json b/php/composer.json
index efb015e53..3e5e10918 100644
--- a/php/composer.json
+++ b/php/composer.json
@@ -22,7 +22,7 @@
         "vimeo/psalm": "5.19.1",
         "friendsofphp/php-cs-fixer": "^3.5",
         "psalm/plugin-phpunit": "^0.18.0",
-        "nikic/php-parser": "^4.14"
+        "nikic/php-parser": "^5.0"
     },
     "repositories": [
         {