Composer exclude specific versions -


How do you write a rule that does not include many specific versions of the library?

I have any 1.7 of the library Version is required

  "requirement": {"some / lib": "~ 1.7"}  

but then I have a library in version 1.7.3 Is having a problem with it and is to stop it from being installed, which: <">" & gt; = 1.7, & lt; 1.7.3 | & Gt; 1.7.3 "}

which is already being ugly then we find another issue with the library and want to exclude version 1.7.7. Trying to do syntax sounds terrible, what's a better way to skip specific versions of the library?

TL: DR is a syntax like this:

  " Need ": {" Something / Lib ":" ~ 1.7 ,! 1.7.3,! 1.7.5 "}  

does this work?

Of course, after asking, a 5-minute answer was found:

  "require": {"some / lib": "~ 1.7 ,! = 1.7.3,! = 1.7.5 "}  

Comments