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
Allow installation of ocramius/proxy-manager ^2.0 #1880
Conversation
While testing JMS Translation Bundle 2.0 support with Twig 2.1, I got an exception "Cannot bind closure to scope of internal class stdClass". It turns out this is due older version of `ocramius/proxy-manager` which does not support PHP 7 correctly. There is no breaking changes in kernel with Proxy Manager 2.x as far as I can see.
Failure is related to Solr. |
Before we merge this we should make sure tags for ezplatform is always generated on php 5.6, to avoid packages like these being locked in php 7.0 version breaking php 5.6 install. (side concept of composer.lock essentially broken when it comes to these scenarios) |
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.
Approved besides comment above.
@andrerom Do you want a counterpart PR to
|
well.. That would be needed when we generate the lock, but should ideally not be in there (composer.json) when people download the code and make it into theirs. So I mentioned it more for @bdunogier @yannickroger @lserwatka and @adib78, but we'll try to find a way for that separately from this PR. so my approval stands :) The safest is that we just make sure to generate the tag on php 5.6 (afaik we do this atm as stated below), alternative is temporary changing composer.json to have the platform set during lock generation, then remove that and regenerating lock checksum afterwards. |
I don't think we can do that, can we ? It would force php 5.6 packages on php 7.0 users even when using composer update. At least now, you can run composer update, and gets dependencies calculated for your platform. |
Unless I am mistaken, it is part of our procedures at the moment, but I'll check. |
@bdunogier I think it is, do you also approve this? |
Merging, but I guess it won't be much useful until 45a7a17 is reverted once JMS has fixed incompatibility with Twig 2.x. |
Yep, I'm aware :) Thanks though :) |
While testing JMS Translation Bundle 2.0 support with Twig 2.1, I got an exception
Cannot bind closure to scope of internal class stdClass
. It turns out this is due to older version ofocramius/proxy-manager
which does not support PHP 7 correctly.There is no breaking changes in kernel with Proxy Manager 2.x as far as I can see.