Upgrade PHPStan to 2.2 and remove superfluous assertion

This commit is contained in:
Ben Ramsey
2026-06-17 22:57:20 -05:00
parent 0d95f9e8b5
commit 5525d344b4
2 changed files with 15 additions and 7 deletions
Generated
+15 -4
View File
@@ -2643,11 +2643,11 @@
},
{
"name": "phpstan/phpstan",
"version": "2.1.33",
"version": "2.2.2",
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/9e800e6bee7d5bd02784d4c6069b48032d16224f",
"reference": "9e800e6bee7d5bd02784d4c6069b48032d16224f",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/e5cc34d491a90e79c216d824f60fe21fd4d93bd6",
"reference": "e5cc34d491a90e79c216d824f60fe21fd4d93bd6",
"shasum": ""
},
"require": {
@@ -2670,6 +2670,17 @@
"license": [
"MIT"
],
"authors": [
{
"name": "Ondřej Mirtes"
},
{
"name": "Markus Staab"
},
{
"name": "Vincent Langlet"
}
],
"description": "PHPStan - PHP Static Analysis Tool",
"keywords": [
"dev",
@@ -2692,7 +2703,7 @@
"type": "github"
}
],
"time": "2025-12-05T10:24:31+00:00"
"time": "2026-06-05T09:00:01+00:00"
},
{
"name": "phpstan/phpstan-mockery",
-3
View File
@@ -491,9 +491,6 @@ class Uuid implements UuidInterface
$uuid = strtolower($uuid);
/** @phpstan-ignore impure.staticPropertyAccess, possiblyImpure.functionCall */
if (!self::$factoryReplaced && preg_match(LazyUuidFromString::VALID_REGEX, $uuid) === 1) {
/** @phpstan-ignore possiblyImpure.functionCall */
assert($uuid !== '');
/** @phpstan-ignore possiblyImpure.new */
return new LazyUuidFromString($uuid);
}