Fix PHP 8.1 deprecation

Created on 28 February 2023, almost 2 years ago
Updated 15 March 2023, almost 2 years ago

Hi,

the first strpos need to be patched too :

if ((strpos($path, '/webform/') === FALSE)
|| is_null($request)
|| is_null($request->getQueryString())
) {
return $path;
}

with the same solution

if ((strpos($path ?? '', '/webform/') === FALSE)
|| is_null($request)
|| is_null($request->getQueryString())
) {
return $path;
}

πŸ“Œ Task
Status

Fixed

Version

6.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024