php 8 not completely supported
-
ProfilePress uses an outdated version of pelago/emogrifier which is not PHP 8 compatible.
File: ProfilePressVendor\Pelago\Emogrifier
Function: handleXpathQueryWarnings
Line: 1463 – 1469With PHP 8 the 5th parameter for callbacks of set_error_handler is omitted. It must be optional.
wrong:
public function handleXpathQueryWarnings( // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter $type, $message, $file, $line, array $context )correct:
public function handleXpathQueryWarnings( // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter $type, $message, $file, $line, array $context = [] )This is only a fix. It would be better to use the newest version of pelago/emogrifier which out-of-the-box support PHP 8
With kind regards
Sebastian Schmidt
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘php 8 not completely supported’ is closed to new replies.