|
10 | 10 | use PHPStan\Testing\RuleTestCase;
|
11 | 11 | use PHPUnit\Framework\Attributes\DataProvider;
|
12 | 12 | use TomasVotruba\UnusedPublic\Collectors\Callable_\AttributeCallableCollector;
|
13 |
| -use TomasVotruba\UnusedPublic\Collectors\Callable_\CallUserFuncCollector; |
| 13 | +use TomasVotruba\UnusedPublic\Collectors\Callable_\CallbackFunctionCollector; |
14 | 14 | use TomasVotruba\UnusedPublic\Collectors\FormTypeClassCollector;
|
15 | 15 | use TomasVotruba\UnusedPublic\Collectors\MethodCall\MethodCallableCollector;
|
16 | 16 | use TomasVotruba\UnusedPublic\Collectors\MethodCall\MethodCallCollector;
|
@@ -174,6 +174,7 @@ public static function provideData(): Iterator
|
174 | 174 |
|
175 | 175 | yield [[__DIR__ . '/Fixture/plain.php', __DIR__ . '/Source/Caller1.php'], []];
|
176 | 176 | yield [[__DIR__ . '/Fixture/plain-call-user-func.php', __DIR__ . '/Source/Caller1.php'], []];
|
| 177 | + yield [[__DIR__ . '/Fixture/plain-call-shutdown-function.php', __DIR__ . '/Source/Caller1.php'], []]; |
177 | 178 | yield [[__DIR__ . '/Fixture/SkipCrashBug89.php.inc'], []];
|
178 | 179 |
|
179 | 180 | yield [[__DIR__ . '/Fixture/SkipJsonSerialize.php'], []];
|
@@ -203,7 +204,7 @@ protected function getCollectors(): array
|
203 | 204 | // callables
|
204 | 205 | self::getContainer()->getByType(StaticMethodCallableCollector::class),
|
205 | 206 | self::getContainer()->getByType(AttributeCallableCollector::class),
|
206 |
| - self::getContainer()->getByType(CallUserFuncCollector::class), |
| 207 | + self::getContainer()->getByType(CallbackFunctionCollector::class), |
207 | 208 | ];
|
208 | 209 | }
|
209 | 210 |
|
|
0 commit comments