Open phptek opened 1 week ago
Does ||
not work?
Would having having a hard fail with |
with a clear error message that you should use ||
instead be an acceptable solution?
A double pipe works yes, and I fixed my issue using that, but a single pipe is legitimate, valid syntax and should be supported.
Tweaking the error message so that folks can debug quickly, would be a nice accompaniment 😀
Module version(s) affected
v1
Description
The use of valid Composer php version range syntax, breaks CI runs. Worse, the error message is worse than useless!
How to reproduce
ci.yml
workflow to any Silverstripe module project following an example taken from e.g.silverstripe/framework
What on earth does "No valid PHP version allowed" even mean! I think that should be "No valid PHP version found".
Possible Solution
The code here should be patched to permit both syntaxes as follows:
Additional Context
No response
Validations
silverstripe/installer
(with any code examples you've provided)