Skip to content
Code-Schnipsel Gruppen Projekte
Commit fdef3d3d erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix(Basket): import() - $products must be of type array, null given

Übergeordneter d6db4239
No related branches found
No related tags found
2 Merge Requests!128fix(Basket): import() - $products must be of type array, null given,!117Update 'next-3.x' with latest changes from 'main'
Pipeline #11961 mit Warnungen bestanden mit Phase
in 3 Minuten und 56 Sekunden
......@@ -166,13 +166,13 @@ public function addProduct(Product $Product): void
//endregion
/**
/**
* Import the products to the basket
*
* @param array $products
* @param array|null $products
* @throws ExceptionStack
*/
public function import(array $products = []): void
public function import(array|null $products = []): void
{
$this->clear();
......
......@@ -84,13 +84,13 @@ public function addProduct(Product $Product): void
//endregion
/**
/**
* Import the products to the basket
*
* @param array $products
* @param array|null $products
* @throws ExceptionStack
*/
public function import(array $products = []): void
public function import(array|null $products = []): void
{
$this->clear();
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren