Active
Project:
Commerce Xero
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2026 at 19:28 UTC
Updated:
10 Apr 2026 at 19:28 UTC
Jump to comment: Most recent
Follow-up from #3584202: Call to a member function canCapturePayment() on null that I encountered when testing.
TypeError: Drupal\commerce_xero\CommerceXeroDataManager::createData(): argument #2 ($strategy) must be of type Drupal\commerce_Entity\CommerceXeroStrategyInterface, null given, called in /var/www/html/web/modules/contrib/commerce_xero/src/EventSubscriber/OrderSubscriber.php on line 113 in Drupal\commerce_xero\CommerceXeroDataTypeManager->createData() (line 58 of /var/www/html/web/modules/contrib/commerce_xero/src/CommerceXeroDataTypeManager.php).
Prevent OrderSubscriber from doing anything if there are no strategies found.
Comments