Skip to content

Commit 9eeb9ae

Browse files
authored
Change deprecated ClassReflection::isSubClassOf() to ClassReflection::is() for PHPStan ^2.1.8 (#62)
* Change deprecated ClassReflection::isSubClassOf() to ClassReflection::is() for PHPStan ^2.1.8 * Bump on target repo as well
1 parent dc19a23 commit 9eeb9ae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

build/target-repository/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"require": {
77
"php": "^7.4|^8.0",
8-
"phpstan/phpstan": "^2.0",
8+
"phpstan/phpstan": "^2.1.8",
99
"webmozart/assert": "^1.11"
1010
},
1111
"autoload": {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"require": {
77
"php": "^8.2",
8-
"phpstan/phpstan": "^2.0",
8+
"phpstan/phpstan": "^2.1.8",
99
"webmozart/assert": "^1.11"
1010
},
1111
"require-dev": {

src/Matcher/Collector/PublicClassMethodMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function shouldSkipClassReflection(ClassReflection $classReflection): boo
2323
}
2424

2525
foreach (self::SKIPPED_TYPES as $skippedType) {
26-
if ($classReflection->isSubclassOf($skippedType)) {
26+
if ($classReflection->is($skippedType)) {
2727
return true;
2828
}
2929
}

0 commit comments

Comments
 (0)