Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UnexpectedValueException Could not parse version constraint ^1.0.2: Invalid version string "^1.0.2"

Composer gives the following error:

Could not load package phpspec/prophecy in http://packagist.org: [UnexpectedValueException] Could not parse version constraint ^1.0.2: Invalid version string "^1.0.2"  
like image 220
ThorSummoner Avatar asked Feb 06 '15 21:02

ThorSummoner


1 Answers

Composer added the ability to use the caret operator in early December 2014. Updating Composer will eliminate this problem - which is quite common because everyone uses PHPUnit, and PHPUnit started using this operator in late January 2015.

like image 93
Sven Avatar answered Nov 07 '22 01:11

Sven