Multiple PHP8 warnings "Expected an object instance when accessing an instance property"

Created on 6 June 2022, over 2 years ago
Updated 8 February 2023, almost 2 years ago

During scan by Phan tool multiple PHP warnings were found in ip_geoloc/views/ip_geoloc_plugin_style.inc (critical level) :
1) In function ip_geoloc_plugin_style_extract_locations(). Expected an object instance when accessing an instance property, but saw an expression $views_plugin_style with type string.
2) In function _ip_geoloc_plugin_style_extract_lat_lng(). Expected an object instance when accessing an instance property, but saw an expression $location with type array.
3)In function ip_geoloc_plugin_style_render_fields(). Expected an object instance when accessing an instance property, but saw an expression $views_plugin_style with type string.
4)In ip_geoloc_get_view_result(). Expected an object instance when accessing an instance property, but saw an expression $field with type string.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇧🇾Belarus alena_stanul

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

    The issue particularly affects sites running on PHP version 8.0.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