data-migration-tool
data-migration-tool copied to clipboard
Php 8.2 Compatibility
Preconditions
- php 8.2
- Magento 2.4.6
Steps to reproduce
- install data migration tool
- run Magento compilation: bin/magento setup:di:compile
Expected result
- no error
Actual result
In ErrorHandler.php line 62:
Deprecated Functionality: Creation of dynamic property Migration\Logger\FileHandler::$filesystem is deprecated in /var/www/vendor/magento/data-migration-tool/src/Migration/Logger/FileHandler.php on line 50
Additional notes
Hi @fooman. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel.
I had the same problem and hot fix it on my side (by declaring these missing properties) There are also issue when launching php bin/magento migrate:data
- Deprecated Functionality: Creation of dynamic property Migration\Step\Eav\Helper::$source is deprecated in data-migration-tool/src/Migration/Step/Eav/Helper.php on line 68
- Deprecated Functionality: Creation of dynamic property Migration\Step\Customer\Model\SourceRecordsCounter::$entityTypeCode is deprecated in /data-migration-tool/src/Migration/Step/Customer/Model/SourceRecordsCounter.php on line 48
php bin/magento migrate:data -a app/code/Vendor/Migration/etc/opensource-to-opensource/1.9.4.0/config.xml

@magento I am working on this
Created a PR for this: https://github.com/magento/data-migration-tool/pull/917. In the meantime you can use this as a patch: https://patch-diff.githubusercontent.com/raw/magento/data-migration-tool/pull/917.patch
Hi @jesse-deboer! :wave:
Thank you for collaboration. Only members of Community Contributors Team are allowed to be assigned to the issue. Please use @magento add to contributors team command to join Contributors team.
@victor-v-rad is it possible to merge this one to also give support for PHP 8.2?
Hi,
I am getting the same error on M 246 PHP 8.2
Deprecated Functionality: Creation of dynamic property Migration\Logger\FileHandler::$filesystem is deprecated
added protected $filesystem; and it fixed it