-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Laminas di and servicemanager updated to PHP 8 compatible version #31854
Laminas di and servicemanager updated to PHP 8 compatible version #31854
Conversation
Hi @ProkopovVitaliy. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ProkopovVitaliy thank you for the provided changes. Please, take a look at the composer.lock file conflicts. Think that we will have more tests passed after resolving it because we have some updates :)
@coderimus resolved conflict in composer.lock. |
@magento run all tests |
@magento run all tests |
@ProkopovVitaliy I found an issue with the BIC: Class 'Laminas\Di\Di' not found This relates to the https://github.com/laminas/laminas-di/blob/3.3.x/CHANGELOG.md#300---2017-11-30 where Laminas\Di\Di is removed in favour of Laminas\Di\DefaultContainer. Please, use new approach |
… into 31173-laminas-di-dependency
@magento run all tests |
@coderimus @ProkopovVitaliy @konarshankar07 @Den4ik looks like servicemanager update depend on di and vice versa, so we have to update them together. Added servicemanager update to this PR. |
public function createService(ServiceLocatorInterface $serviceLocator) | ||
{ | ||
return $this->extractInitParameters($serviceLocator->get('Application')); | ||
return $this($serviceLocator, 'Application'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that we may just replace this method with __invoke
instead of extend the class by the new method.
@sivaschenko please, correct me if I'm not right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to keep the existing method for backward compatibility purposes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, but it's setup sources. I'm not sure that someone extends or customizes the setup process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are probably right
Updated laminas-mvc in this PR as well. Still trying to resolve the issue: Laminas DI attempts to instantiate even optional constructor parameters (and fails to do so) |
@magento run all tests |
…iated by laminas di
@magento run all tests |
@magento run all tests |
Remaining issue to resolve: |
@magento run all tests |
Hi @ProkopovVitaliy, thank you for your contribution! |
…nsole packages from composer
Description (*)
Updated laminas/laminas-di to ^3.2.0
Updated laminas/laminas-servicemanager to ^3.6.0
Updated laminas/laminas-mvc to ^3.2.0
Related Pull Requests
https://github.com/magento/partners-magento2ee/pull/515
Fixed Issues