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.36k stars 460 forks source link

Error when running composer require in php8 using laravel8 #287

Open melberth23 opened 3 years ago

melberth23 commented 3 years ago

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 commented 3 years ago

In the library requirements:

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

Check this:

phpfui commented 2 years ago

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

liuyong888 commented 2 years ago

这应该由 PR #289修复

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

293

phpfui commented 2 years ago

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.

liuyong888 commented 2 years ago

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