diff --git a/composer.json b/composer.json index d3c5ee5a707..1752f5d1591 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "php-stubs/wordpress-stubs": "^6.0", "phpcompatibility/phpcompatibility-wp": "2.1.5", "phpdocumentor/reflection": "^3.0", - "phpstan/phpstan": "^1.0", + "phpstan/phpstan": "^2.1", "roave/security-advisories": "dev-latest", "sirbrillig/phpcs-variable-analysis": "2.11.21", "wp-cli/export-command": "^2.0", diff --git a/composer.lock b/composer.lock index 6c4a7f86950..64e1bab6f65 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": "f07820d916d98f0138429ae511b26529", + "content-hash": "505c126f9f5e5854fc3cd20ae81344a6", "packages": [ { "name": "ampproject/amp-toolbox", @@ -3180,20 +3180,20 @@ }, { "name": "phpstan/phpstan", - "version": "1.12.14", + "version": "2.1.2", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "e73868f809e68fff33be961ad4946e2e43ec9e38" + "reference": "7d08f569e582ade182a375c366cbd896eccadd3a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e73868f809e68fff33be961ad4946e2e43ec9e38", - "reference": "e73868f809e68fff33be961ad4946e2e43ec9e38", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/7d08f569e582ade182a375c366cbd896eccadd3a", + "reference": "7d08f569e582ade182a375c366cbd896eccadd3a", "shasum": "" }, "require": { - "php": "^7.2|^8.0" + "php": "^7.4|^8.0" }, "conflict": { "phpstan/phpstan-shim": "*" @@ -3234,7 +3234,7 @@ "type": "github" } ], - "time": "2024-12-31T07:26:13+00:00" + "time": "2025-01-21T14:54:06+00:00" }, { "name": "phpunit/php-code-coverage", @@ -8494,5 +8494,5 @@ "platform-overrides": { "php": "7.4" }, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.3.0" }