Closed soullivaneuh closed 7 years ago
Can you use a single pipe as it is done in Symfony (for people using an old version of Composer).
Can you use a single pipe as it is done in Symfony
:-1: This is a very old and "should not be used" composer convention.
(for people using an old version of Composer).
You mean unstable then? Because this is OK since v1.0.0 stable. IMHO you should not take care of this. Old composer version should be simply upgraded to the last stable.
For a personal case, we use new constraint formats for all sonata project for a while and we didn't get any issue of people using a not compatible composer binary. :wink:
as it is done in Symfony
Maybe Symfony is lagging behind the best practice? Are you sure they do this on purpose ? Is it part of their standard ?
Is it part of their standard ?
I think it's more a historical issue than a standard.
My goal is to include this bundle in the Symfony SE. I would prefer keeping with SF conventions for now. If it really matters for you, please at least update all constraints in the composer file for consistency.
Or maybe open an issue / PR in Symfony, to know why they do this?
If you want to include it in the Symfony SE, then you should not accept my PR, at least for now.
Symfony uses unbound PHP constraint ATM.
Or maybe open an issue / PR in Symfony, to know why they do this?
:+1:
This change has already been discussed on the SF repository and rejected: https://github.com/symfony/symfony/pull/18186
@dunglas but this was about replacing the OR operator, whereas @Soullivaneuh point was more focused on the unbound version of PHP.
No one would be using old Composer with a spanking new Symfony SE (3.2 or later?). That's a moot point.
Ok then go for the new notation. @Soullivaneuh can you standardize the composer.json
file to use ||
everywhere?
Ref: https://getcomposer.org/doc/faqs/why-are-unbound-version-constraints-a-bad-idea.md