Active
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Commerce
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2023 at 07:32 UTC
Updated:
16 Jun 2023 at 07:32 UTC
Jump to comment: Most recent
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