-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dom-crawler bug with PHP 8.1: please use a newer version #325
Comments
Same issue as @cscrewsandcaptains. was able to bypass the error using @cscrewsandcaptains workaround. Thanks |
Trying to resolve this issue for php8, ran into another error after making above changes to composer file |
In order to solve the issue with Symfony DOM Crawler, I resolved it by changing the version of the main composer package in the following manner in ###From###
###To###
|
My suggestion to add |
@bugToaster: I have no "codeception/module-filesystem" or "symfony/browser-kit" line in my composer.json. |
I have not install this packages ("composer show"). So there is no need for me to install them. |
Please add "|~4.4" to the composer.json entries of the required symfony packages:
"symfony/css-selector":"~2.8|~3.0|~4.4",
"symfony/dom-crawler": "~2.8|~3.0|~4.4"
Because 4.4 is the last version that get bugfixes.
There is a bug in the 3.0 version of dom-crawler, so your control cannot be used with PHP 8.1.
A workaround for my own project is to add this to composer.json:
"symfony/css-selector": "4.4.37 as 3.0.0",
"symfony/dom-crawler": "4.4.39 as 3.0.0"
The text was updated successfully, but these errors were encountered: