Skip to content

Commit 1b20777

Browse files
committed
note
1 parent 132d17c commit 1b20777

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rules/PHPUnit100/Rector/Class_/ParentTestClassConstructorRector.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
2121

2222
/**
23+
* @see https://github.com/sebastianbergmann/phpunit/issues/3975
2324
* @see https://github.com/sebastianbergmann/phpunit/commit/705874f1b867fd99865e43cb5eaea4e6d141582f
2425
*
2526
* @see \Rector\PHPUnit\Tests\PHPUnit100\Rector\Class_\ParentTestClassConstructorRector\ParentTestClassConstructorRectorTest
@@ -114,10 +115,10 @@ private function shouldSkipClass(Class_ $class): bool
114115
$className = $this->getName($class);
115116

116117
// loaded automatically by PHPUnit
117-
if (str_ends_with($className, 'Test')) {
118+
if (str_ends_with((string) $className, 'Test')) {
118119
return true;
119120
}
120121

121-
return str_ends_with($className, 'TestCase');
122+
return str_ends_with((string) $className, 'TestCase');
122123
}
123124
}

0 commit comments

Comments
 (0)