Ver código fonte

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

develop
Guillaume Bourgeois 2 meses atrás
pai
commit
6bec54418b
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      domain/Order/OrderStatus/OrderStatusSolver.php

+ 1
- 1
domain/Order/OrderStatus/OrderStatusSolver.php Ver arquivo

@@ -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();


Carregando…
Cancelar
Salvar