Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#3 | i18-3273941-php-warnings-during-1.patch | 3.36 KB | Dmitrii_Zadorozhnyi |
Comments
Comment #2
Dmitrii_Zadorozhnyi CreditAttribution: Dmitrii_Zadorozhnyi at EPAM Systems commentedI would suggest to apply a patch.
Comment #3
Dmitrii_Zadorozhnyi CreditAttribution: Dmitrii_Zadorozhnyi at EPAM Systems commentedPatch with some changes
Comment #4
apadernoComment #5
joseph.olstadlooks good, haven't tested it yet but the automated tests do pass all green for php 8.1, so I'm triggering some more tests, 5.3 , 7.4.
Comment #7
joseph.olstadComment #8
joseph.olstadIgnore the fail, it's changes to the ci runner not the patch causing the fails.
Comment #9
joseph.olstadComment #10
joseph.olstadhttps://www.drupal.org/project/i18n/releases/7.x-1.34