瀏覽代碼

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

develop
Guillaume Bourgeois 2 月之前
父節點
當前提交
6bec54418b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      domain/Order/OrderStatus/OrderStatusSolver.php

+ 1
- 1
domain/Order/OrderStatus/OrderStatusSolver.php 查看文件

@@ -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…
取消
儲存