-
-
Notifications
You must be signed in to change notification settings - Fork 632
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
Updated composer.json to allow newer versions of ZF2. #1442
Conversation
Hi @michaelmoussa, Thank you for submitting this PR; the changes in the composer.json should work excellently. I did notice however that you ran In addition to this all other libraries are updated as well; can you please revert the changes to the composer.lock and run This is a trick to update none of the packages but it makes sure that the lock file and the json file are in sync. |
Sure @mvriel. Must have been because I prepared the PR from my PHP 5.5 environment - oops! |
@mvriel please note the the |
Also, don't use |
@rdohms the composer.lock file is relevant for Travis and the releases of phpDocumentor such as the PEAR package and the PHAR file |
When I encountered this stuff |
Yes, just making sure we clear up why we are worried about these aspects. |
There seems to be a lot of other changes to the I'm going to provide just the |
@mvriel It's complaining about some failed tests, but those look like they were introduced prior to my PR. |
Updated composer.json to allow newer versions of ZF2.
Thanks @michaelmoussa! I appreciate this! |
You're welcome! When do you expect you'll be able to tag this? |
Hmm.. it is quite some time until the next real tag. But if it helps you I can cherrypick your changes to master and do a 2.7.1 tag. Let me know! |
Yes. A cherry-pick would be very helpful! Thanks |
I had to re-commit because of the conflict caused by the lock file (and I couldn't solve it for some reason); but a new tag 2.7.1 is made with your changes. Thanks again for the fix! |
Great! Thanks again for phpDocumentor. :) |
I've had to resort to forking phpDocumentor and updating composer.json in order to use it in my projects requiring Zend Framework 2.3.x.
After talking a bit with @rdohms and seeing his comment here, I decided to prepare this PR along with tests in hopes of being able to remove my fork.
As a base case, let's take a developer who is using PHP 5.3.3 and wanting the current 2.7.0 release of phpDocumentor.
../phpDocumentor2
is a local clone of the upstream repo, currently referencing commit 98b28ee (i.e. 2.7.0).I omitted most of the output for brevity, but as you can see, it installs 2.1.x ZF2 packages (as expected).
Now, what if the PR is applied?
composer.lock
diff omitted for brevity.This time, we get 2.2.6. (yes, ZF2 went up to 2.2.8, but the individual components required by phpDocumentor stopped at 2.2.6).
Now, what if our application requires at least ZF2 version 2.3? Obviously, this won't work on our PHP 5.3.3 VM, but if we upgrade to 5.5.x...
I hope this testing is sufficient to ease any concerns, and that you will merge this PR.