[GH-ISSUE #575] Error in composer.json #201

Closed
opened 2026-03-04 02:13:05 +03:00 by kerem · 2 comments
Owner

Originally created by @Reflic on GitHub (Jun 8, 2015).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/575

I just updated my developement environment and got these two error messages which show that the reqirements in the composer.json of seldaek/monolog have an error.

[RuntimeException]                                                           
  Could not load package monolog/monolog in http://packagist.org: [Unexpected  
  ValueException] Could not parse version constraint >=0.90 <3.0: Invalid version string "0.90 <3.0"                                                      


[UnexpectedValueException]                                                   
  Could not parse version constraint >=0.90 <3.0: Invalid version string "0.9  0 <3.0" 

It seems that this line (https://github.com/Seldaek/monolog/blob/master/composer.json#L23) is the error:

"ruflin/elastica": ">=0.90 <3.0",

a simple comma between the two version constrains fixes the error.

"ruflin/elastica": ">=0.90, <3.0",

I have attached a pull request which fixes the problem.

Originally created by @Reflic on GitHub (Jun 8, 2015). Original GitHub issue: https://github.com/Seldaek/monolog/issues/575 I just updated my developement environment and got these two error messages which show that the reqirements in the composer.json of seldaek/monolog have an error. ``` [RuntimeException] Could not load package monolog/monolog in http://packagist.org: [Unexpected ValueException] Could not parse version constraint >=0.90 <3.0: Invalid version string "0.90 <3.0" [UnexpectedValueException] Could not parse version constraint >=0.90 <3.0: Invalid version string "0.9 0 <3.0" ``` It seems that this line (https://github.com/Seldaek/monolog/blob/master/composer.json#L23) is the error: ``` "ruflin/elastica": ">=0.90 <3.0", ``` a simple comma between the two version constrains fixes the error. ``` "ruflin/elastica": ">=0.90, <3.0", ``` I have attached a pull request which fixes the problem.
kerem closed this issue 2026-03-04 02:13:05 +03:00
Author
Owner

@stof commented on GitHub (Jun 8, 2015):

This is not an error. Just use an uptodate version of Composer rather than a composer version older than 7 months

<!-- gh-comment-id:109941247 --> @stof commented on GitHub (Jun 8, 2015): This is not an error. Just use an uptodate version of Composer rather than a composer version older than 7 months
Author
Owner

@Reflic commented on GitHub (Jun 8, 2015):

Oops, your right should have checked that first. Sorry.

<!-- gh-comment-id:109941921 --> @Reflic commented on GitHub (Jun 8, 2015): Oops, your right should have checked that first. Sorry.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/monolog#201
No description provided.