PHP 8.1 deprecated
-
Hi
We’ve found a deprecation problem for PHP 8.1 in your worker plugin.
In
worker/src/MWP/Worker/Request.php on Line 198
, you have anNULL
value that you pass to thebase64_decode
function. That is no longer allowed and deprecated with PHP 8.1. Looks like the$this->signatureHeaderName
is not found in$this->getHeader()
. We’ve temporarily fixed it by either returning an empty strinng instead of NULL or replace the linebase64_decode($this->getHeader($this->signatureHeaderName))
withbase64_decode($this->getHeader($this->signatureHeaderName) ?? '')
. We dont know what consequenses this has, but it would be appreciated if you could fix this asap. We dont want to change the code manually on all of our customers websites, thats a lot of work…
- The topic ‘PHP 8.1 deprecated’ is closed to new replies.