We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 607ab3b commit be7357eCopy full SHA for be7357e
rules/PHPUnit100/Rector/Class_/ParentTestClassConstructorRector.php
@@ -115,10 +115,10 @@ private function shouldSkipClass(Class_ $class): bool
115
$className = $this->getName($class);
116
117
// loaded automatically by PHPUnit
118
- if (str_ends_with($className, 'Test')) {
+ if (str_ends_with((string) $className, 'Test')) {
119
return true;
120
}
121
122
- return str_ends_with($className, 'TestCase');
+ return str_ends_with((string) $className, 'TestCase');
123
124
0 commit comments