Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 3ad8bd31 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix(phpstan): __construct() has parameter with no value type specified

Übergeordneter 073f0eb4
No related branches found
No related tags found
3 Merge Requests!22refactor(SimpleCheckoutWindow): style and UX,!18Next 2.x,!16Feat quiqqer v2
......@@ -12,7 +12,7 @@ class Basket extends QUI\Control
/**
*/
public function __construct(Checkout $Checkout, $attributes = [])
public function __construct(Checkout $Checkout, array $attributes = [])
{
$this->Checkout = $Checkout;
......@@ -53,7 +53,7 @@ public function getBody(): string
$Engine->assign([
'basketEmpty' => false,
'UniqueArticles' => $UniqueArticles,
'basketHtml' => $basketHtml
'basketHtml' => $basketHtml
]);
return $Engine->fetch(dirname(__FILE__) . '/Basket.html');
......
......@@ -24,7 +24,7 @@
*/
class Checkout extends QUI\Control
{
public function __construct($attributes = [])
public function __construct(array $attributes = [])
{
$this->setAttributes([
'orderHash' => false,
......
......@@ -16,5 +16,5 @@ interface CheckoutStepInterface
* @param Checkout $Checkout An instance of the Checkout class.
* @param array $attributes [optional] An array of attributes (default: empty array).
*/
public function __construct(Checkout $Checkout, $attributes = []);
public function __construct(Checkout $Checkout, array $attributes = []);
}
......@@ -26,7 +26,7 @@ class CheckoutBillingAddress extends QUI\Control implements CheckoutStepInterfac
* @param array $attributes
* @return void
*/
public function __construct(Checkout $Checkout, $attributes = [])
public function __construct(Checkout $Checkout, array $attributes = [])
{
$this->Checkout = $Checkout;
......
......@@ -29,7 +29,7 @@ class CheckoutDelivery extends QUI\Control implements CheckoutStepInterface
* @param array $attributes
* @return void
*/
public function __construct(Checkout $Checkout, $attributes = [])
public function __construct(Checkout $Checkout, array $attributes = [])
{
$this->Checkout = $Checkout;
......
......@@ -13,7 +13,7 @@ class CheckoutPayment extends QUI\Control implements CheckoutStepInterface
{
protected Checkout $Checkout;
public function __construct(Checkout $Checkout, $attributes = [])
public function __construct(Checkout $Checkout, array $attributes = [])
{
$this->Checkout = $Checkout;
......
......@@ -12,7 +12,7 @@ class CheckoutShipping extends QUI\Control implements CheckoutStepInterface
{
protected Checkout $Checkout;
public function __construct(Checkout $Checkout, $attributes = [])
public function __construct(Checkout $Checkout, array $attributes = [])
{
$this->Checkout = $Checkout;
......
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