Browse Source

[Erreur] OrderStatusSolver::getLabel() must be of the type string, null given

develop
Guillaume Bourgeois 3 months ago
parent
commit
6bec54418b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      domain/Order/OrderStatus/OrderStatusSolver.php

+ 1
- 1
domain/Order/OrderStatus/OrderStatusSolver.php View File

@@ -13,7 +13,7 @@ class OrderStatusSolver extends AbstractSolver
$this->orderStatusDefinition = $this->loadService(OrderStatusDefinition::class);
}

public function getLabel(string $orderStatusAlias): string
public function getLabel(string $orderStatusAlias = null): string
{
$orderStatusArray = $this->orderStatusDefinition->getOrderStatusList();


Loading…
Cancel
Save