paquettg / php-html-parser

An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just like jQuery.
MIT License
2.37k stars 462 forks source link

Error while installing with symfony 5.3.6 #284

Closed Kazimir42 closed 3 years ago

Kazimir42 commented 3 years ago

Hello, while trying to install your library in symfony project I've end up with the following error :

Problem 1
  - paquettg/php-html-parser[3.1.0, ..., 3.1.1] require guzzlehttp/psr7 ^1.6 -> found guzzlehttp/psr7[1.6.0, ..., 1.8.2] but the package is fixed to 2.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  - Root composer.json requires paquettg/php-html-parser ^3.1 -> satisfiable by paquettg/php-html-parser[3.1.0, 3.1.1].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Could you please bump your guzzlehttp/psr7 to 2.0.0 ?

Thanks in advance

phpfui commented 3 years ago

This should be fixed by PR https://github.com/paquettg/php-html-parser/pull/289