Codeception / lib-innerbrowser

InnerBrowser
MIT License
79 stars 19 forks source link

Deprecation Warning "Symfony\Component\DomCrawler\Crawler::text()" will normalize whitespaces by default in Symfony 5.0... #46

Closed reinholdfuereder closed 2 years ago

reinholdfuereder commented 2 years ago

Codeception v4.1.22

"Symfony\Component\DomCrawler\Crawler::text()" will normalize whitespaces by default in Symfony 5.0, set the second "$normalizeWhitespace" argument to false to retrieve the non-normalized version of the text. phar://.../codeception/4.1.x/codecept.phar/vendor/symfony/dom-crawler/Crawler.php:631

I think it is in my case from {{\Codeception\Lib\InnerBrowser::grabTextFrom}}, but there are more cases:

image

Naktibalda commented 2 years ago

I only noticed this issue now.

The phar file comes with Symfony 4.4, if you want newer version you can install Codeception using composer or wait for Codeception 5.

Nobody has complained about text normalization since Symfony 5 came out 2.5 years ago, so there is nothing to be fixed. Is it causing any issues to you?

reinholdfuereder commented 2 years ago

Thank you @Naktibalda

IIRC it really is just the log "spam"/"irritation" and is not causing any issues.