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
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!128fix(Basket): import() - $products must be of type array, null given,!117Update 'next-3.x' with latest changes from 'main'
Pipeline-Nr. 11961 mit Warnungen bestanden
...@@ -166,13 +166,13 @@ public function addProduct(Product $Product): void ...@@ -166,13 +166,13 @@ public function addProduct(Product $Product): void
//endregion //endregion
/** /**
* Import the products to the basket * Import the products to the basket
* *
* @param array $products * @param array|null $products
* @throws ExceptionStack * @throws ExceptionStack
*/ */
public function import(array $products = []): void public function import(array|null $products = []): void
{ {
$this->clear(); $this->clear();
......
...@@ -84,13 +84,13 @@ public function addProduct(Product $Product): void ...@@ -84,13 +84,13 @@ public function addProduct(Product $Product): void
//endregion //endregion
/** /**
* Import the products to the basket * Import the products to the basket
* *
* @param array $products * @param array|null $products
* @throws ExceptionStack * @throws ExceptionStack
*/ */
public function import(array $products = []): void public function import(array|null $products = []): void
{ {
$this->clear(); $this->clear();
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren