File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
rules/PHPUnit100/Rector/Class_ Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2020use 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}
You can’t perform that action at this time.
0 commit comments