-
-
Notifications
You must be signed in to change notification settings - Fork 742
Closed
Labels
Description
Bug Report
| Subject | Details |
|---|---|
| Rector version | dev-main#bd630a0db2db355484ee4d5a99850facb2323f37 |
@staabm here a bug because of your PR:
Minimal PHP Code Causing Issue
Shown in e2e test on this repo:
https://github.com/rectorphp/rector/actions/runs/4982533394/jobs/8918337344#step:6:17
Time: 00:00.045, Memory: 14.00 MB
There was 1 error:
1) Utils\Rector\Tests\Rector\RenameSimpleRector\RenameSimpleRectorTest::test with data set #0 ('/home/runner/work/rector/rect...hp.inc')
Error: Class 'RectorPrefix202305\Symplify\SmartFileSystem\SmartFileSystem' not found
Expected Behaviour
It should be working. I tried in laminas-servicemanager-migration test as well and got same error:
git clone git@github.com:laminas/laminas-servicemanager-migration.git
cd laminas-servicemanager-migration
composer require rector/rector:dev-main#bd630a0db2db355484ee4d5a99850facb2323f37
vendor/bin/phpunit
Got error:
➜ laminas-servicemanager-migration git:(1.13.x) ✗ vendor/bin/phpunit
PHPUnit 9.6.8 by Sebastian Bergmann and contributors.
EEEEEEEEEEEEEEEEEEE 19 / 19 (100%)
Time: 00:00.039, Memory: 16.00 MB
There were 19 errors:
1) LaminasTest\ServiceManager\Migration\Rector\Class_\ImplementsFactoryInterfaceToPsrFactoryRector\AutoImportRenameUseTest::test with data set #0 ('/Users/samsonasik/www/laminas...hp.inc')
Error: Class "RectorPrefix202305\Symplify\SmartFileSystem\SmartFileSystem" not found
/Users/samsonasik/www/laminas/laminas-servicemanager-migration/vendor/rector/rector/src/Kernel/CachedContainerBuilder.php:40
/Users/samsonasik/www/laminas/laminas-servicemanager-migration/vendor/rector/rector/src/Kernel/RectorKernel.php:112
/Users/samsonasik/www/laminas/laminas-servicemanager-migration/vendor/rector/rector/src/Kernel/RectorKernel.php:55
/Users/samsonasik/www/laminas/laminas-servicemanager-migration/vendor/rector/rector/packages/Testing/PHPUnit/AbstractTestCase.php:38
/Users/samsonasik/www/laminas/laminas-servicemanager-migration/vendor/rector/rector/packages/Testing/PHPUnit/AbstractRectorTestCase.php:60Reactions are currently unavailable