diff --git a/build/target-repository/composer.json b/build/target-repository/composer.json index af6abc9f..4036553f 100644 --- a/build/target-repository/composer.json +++ b/build/target-repository/composer.json @@ -5,7 +5,7 @@ "license": "MIT", "require": { "php": "^7.4|^8.0", - "phpstan/phpstan": "^2.0", + "phpstan/phpstan": "^2.1.8", "webmozart/assert": "^1.11" }, "autoload": { diff --git a/composer.json b/composer.json index 28337644..17e76abe 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "license": "MIT", "require": { "php": "^8.2", - "phpstan/phpstan": "^2.0", + "phpstan/phpstan": "^2.1.8", "webmozart/assert": "^1.11" }, "require-dev": { diff --git a/src/Matcher/Collector/PublicClassMethodMatcher.php b/src/Matcher/Collector/PublicClassMethodMatcher.php index 07261a03..e8df300a 100644 --- a/src/Matcher/Collector/PublicClassMethodMatcher.php +++ b/src/Matcher/Collector/PublicClassMethodMatcher.php @@ -23,7 +23,7 @@ public function shouldSkipClassReflection(ClassReflection $classReflection): boo } foreach (self::SKIPPED_TYPES as $skippedType) { - if ($classReflection->isSubclassOf($skippedType)) { + if ($classReflection->is($skippedType)) { return true; } }