Explorar el Código

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

develop
Guillaume Bourgeois hace 2 meses
padre
commit
6bec54418b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      domain/Order/OrderStatus/OrderStatusSolver.php

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

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


Cargando…
Cancelar
Guardar