Browse Source

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

develop
Guillaume Bourgeois 2 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

$this->orderStatusDefinition = $this->loadService(OrderStatusDefinition::class); $this->orderStatusDefinition = $this->loadService(OrderStatusDefinition::class);
} }


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



Loading…
Cancel
Save