PHP warnings during static code analysis using Phan: Expected an object instance when accessing an instance property

Created on 7 April 2022, over 3 years ago
Updated 26 January 2023, over 2 years ago

Problem/Motivation

PHP warnings during static code analysis using phan with messages:
"Expected an object instance when accessing an instance property, but saw an expression $node with type bool" in i18n_node/i18n_node.module
"Expected an object instance when accessing an instance property, but saw an expression $format with type false" in
i18n_string/i18n_string.module
"Expected an object instance when accessing an instance property, but saw an expression $translation_term with type false" in
i18n_taxonomy/i18n_taxonomy.admin.inc

🐛 Bug report
Status

Fixed

Version

1.0

Component

Miscellaneous

Created by

🇰🇿Kazakhstan Dmitrii_Zadorozhnyi

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.

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