Unparenthesized "a ? b : c ? d : e" is deprecated

Created on 6 September 2023, 10 months ago
Updated 7 September 2023, 10 months ago

Fatal error: Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) for line 1773 and 1774 of httprl.module.

I updated the two lines in question with the following, and it fixed the issue for me.

$location['host'] = (!empty($location['host']) ? $location['host'] : !empty($original_location['host'])) ? $original_location['host'] : $_SERVER['HTTP_HOST'];
        $location['port'] = (!empty($location['port']) ? $location['port'] : !empty($original_location['port'])) ? $original_location['port'] : '';
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇺🇸United States jenlampton

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024