From 607c1fbffbfc28a6a0aabab057be5b65985ab66a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 22 Dec 2019 09:37:11 +0100 Subject: [PATCH] phpstan reduction --- Models/Shipping.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Models/Shipping.php b/Models/Shipping.php index e5cdc12..7f69728 100644 --- a/Models/Shipping.php +++ b/Models/Shipping.php @@ -35,10 +35,10 @@ class Shipping /** * Order. * - * @var intstring + * @var int * @since 1.0.0 */ - private $order = ''; + private $order = 0; /** * From. @@ -87,7 +87,7 @@ class Shipping * * @since 1.0.0 */ - public function __construct($id) + public function __construct(int $id) { $this->id = $id; } @@ -111,7 +111,7 @@ class Shipping * * @since 1.0.0 */ - public function getOrder() + public function getOrder() : int { return $this->order; } @@ -125,7 +125,7 @@ class Shipping * * @since 1.0.0 */ - public function setOrder($order) : void + public function setOrder(int $order) : void { $this->order = $order; }