-
-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PHPExcel] migration to [PhpSpreadsheet] #6171
Comments
I think this is a bug related to the problem that the class PHPExcel does not exists in your project and is not replaced. |
If you can verify, that after adding the class it is working, i am gonna create a failing PR for that. |
@TomasVotruba That´s definitely related to this issue here: sabbelasichon/typo3-rector#2161. If you are saying, that should be possible without autoloading this would be great. If not or maybe as in between step, we could you use this neat but very smart library here: https://github.com/TYPO3/class-alias-loader. So if we provide all the old classes we are coming from in a ClassAliasMap the problem is gone. I am using exactly this approach in my projects. But this still requires autoloading. What do you think? |
That's the goal here, as there is no type check needed. The replacement is basically |
@sabbelasichon thanks for your quick reply I added a classmap on my composer.json now when i run I tried to add composer´s autoloading files |
@TomasVotruba Do you think it could help to add stubs for this? For me in typo3-rector it works perfectly now. I thinks it is somehow related. See: sabbelasichon/typo3-rector@c924f8c#diff-5d6f21616131ebbf56ab692f8d9f7cef73b1c7167c5a33e8fd7bc8262cb3a2c5R4 |
@sabbelasichon I haven't looked into this yet. |
@TomasVotruba I am not able to create a failing test for that. It works perfectly as you said. @kjeanson Never asked before, but what version of rector are you using? In current master it works perfectly without having any related classes in place. |
@kjeanson We'll need a reproducible repository on Github to verify. |
@TomasVotruba this is my repo : N.B : my rector version is 0.10.11 |
Thanks! I'm looking into it |
There is one more problem if the whole fixture is included. I'm looking into it |
@TomasVotruba Thanks a lot ! It finally works when i comment the |
rectorphp/rector-src@938f4a2 [TypeDeclaration] Update fixture and example method name (#6171)
Hi,
I try to migrate PHPExcel to PhpSpreadsheet.
Everything is ok (composer require / rector.php config file)
I have a /tests/PHPExcelTest.php file for PHPUnit wich is containing a PHPExcel sample :
$objPHPExcel = new PHPExcel(); ...
When i run vendor/bin/rector process tests/ i have a progressbar 52/52 and a green message [OK] Rector is done! but nothing append. My "new PHPExcel" is not replace by PhpSpreadsheet.
Do you have any idea ?
Thanks.
The text was updated successfully, but these errors were encountered: