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

fix: uncaught TypeError: Products::getProduct(): Argument #1 ($pid) must be of type int

Übergeordneter d1a6fa19
No related branches found
No related tags found
3 Merge Requests!52Next,!51fix: uncaught TypeError: Products::getProduct(): Argument #1 ($pid) must be of type int,!50fix: uncaught TypeError: Products::getProduct(): Argument #1 ($pid) must be of type int
Pipeline #5278 bestanden mit Phase
in 12 Sekunden
......@@ -241,15 +241,15 @@ public function getView(): ArticleView
/**
* Return the Article ID
*
* @return string|int
* @return int
*/
public function getId()
{
if (isset($this->attributes['id'])) {
return $this->attributes['id'];
return (int)$this->attributes['id'];
}
return '';
return 0;
}
/**
......
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