php-html-parser icon indicating copy to clipboard operation
php-html-parser copied to clipboard

Error when running composer require in php8 using laravel8

Open melberth23 opened this issue 4 years ago • 5 comments

Hello, I am using PHP 8 and Laravel 8.

When running composer require paquettg/php-html-parser I got an error root composer.json

Sample required library: https://packagist.org/packages/guzzlehttp/guzzle#7.0.0 -> required PHP version is locked to 7.2.5

Hope someone can help.

Best regards

melberth23 avatar Sep 09 '21 11:09 melberth23

In the library requirements:

  • guzzlehttp/guzzle: ^7.0
  • guzzlehttp/psr7: ^1.6

Both were locked to the old version but the 2 libraries above have updated version and run in PHP8.

Check this:

  • https://packagist.org/packages/guzzlehttp/guzzle
  • https://packagist.org/packages/guzzlehttp/psr7

melberth23 avatar Sep 09 '21 12:09 melberth23

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

phpfui avatar Oct 07 '21 18:10 phpfui

这应该由 PR #289修复

It didn't work on Laravel8 and locked in a higher version of guzzlehttp/psr7. #293

liuyong888 avatar Oct 25 '21 11:10 liuyong888

I don't have easy access to PHP 8.1 till after it ships. Will update PR for PHP 8.1 shortly after release if this PR is still open.

phpfui avatar Oct 25 '21 16:10 phpfui

I don't have easy access to PHP 8.1 till after it ships. Will update PR for PHP 8.1 shortly after release if this PR is still open.

my environments: php: 7.4 laravel: 8

liuyong888 avatar Oct 26 '21 03:10 liuyong888