with PHP7.4, a notice message of "Deprecated function: Unparenthesized `a ? b : c ? d : e` is deprecated ..."

Created on 15 October 2020, about 4 years ago
Updated 14 March 2024, 8 months ago

Problem/Motivation

After upgrading from PHP5 to PHP7 (7.4.4), I found a notice message when loading a page containing Views / IP geoloc / Leaflet map,

Deprecated function: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` require_once() ( line 10 of [base-path]/sites/all/modules/ip_geoloc/views/ip_geoloc_plugin_style_leaflet.inc ).

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇯🇵Japan tkato183

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

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

  • 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