Errore after installing data migration tool 2.4.8.1
Clean install of magento 2.4.8 composer require magento/data-migration-tool:2.4.8.1 php bin/magento setup:upgrade php bin/magento setup:di:compile
In compilation time error:
In ErrorHandler.php line 61:
Deprecated Functionality: Migration\ResourceModel\Record::__construct(): Implicitly marking parameter $document as nullable is deprecated, the explicit nullabl e type must be used instead in /home/dev/www/public_html/vendor/magento/data-migration-tool/src/Migration/ResourceModel/Record.php on line 34
Hi @matteotestoni. 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.
@magento I am working on this
Hi @matteotestoni! :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.
@magento add to contributors team
Hi @matteotestoni! :wave: Thank you for joining. Please accept team invitation :point_right: here :point_left: and add your comment one more time.
Clean install of magento 2.4.8 composer require magento/data-migration-tool:2.4.8.1 php bin/magento setup:upgrade php bin/magento setup:di:compile
In compilation time error:
In ErrorHandler.php line 61:
Deprecated Functionality: Migration\ResourceModel\Record::__construct(): Implicitly marking parameter $document as nullable is deprecated, the explicit nullabl e type must be used instead in /home/dev/www/public_html/vendor/magento/data-migration-tool/src/Migration/ResourceModel/Record.php on line 34
Ah yes, the joy of the Magento migration tool, immediately breaking your fresh Magento upon installation...
I've created this patch: php8.4-compatibility.patch
Use the cweagans/composer-patches to apply the patch; place it in the patches/composer/magento/data-migration-tool folder and add something like this in your composer.json:
"patches": {
"magento/data-migration-tool": {
"PHP 8.4 compatibility": "patches/composer/magento/data-migration-tool/php8.4-compatibility.patch"
}
}