PHP 7.4 raises a warning if you try to access a property from an empty variable.

commerce_currencies() uses the global $language, which in normal Drupal is always initialised in bootstrap

When you use drush and do a drush rr, line 559 https://git.drupalcode.org/project/commerce/-/blob/7.x-1.x/commerce.modu... brings on the warning.

Should commerce_currencies() check if $language is empty, and if so call default_language()? Or should it be drush's responsibility to set a value for $language?

Comments

ConcreteGannet created an issue.