From c16cc360aad8c655d7faad5e9df78271c35709f8 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Tue, 30 Jan 2024 19:44:37 +0100 Subject: [PATCH] Switch to short typehints --- src/Collection.php | 4 ++-- src/Geometry/Point.php | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Collection.php b/src/Collection.php index e8109b3b..02dc1d95 100644 --- a/src/Collection.php +++ b/src/Collection.php @@ -51,7 +51,7 @@ class Collection implements CollectionInterface, IteratorAggregate, Countable /** * Count items in collection * - * @return integer + * @return int */ public function count(): int { @@ -102,7 +102,7 @@ class Collection implements CollectionInterface, IteratorAggregate, Countable /** * Return item at given position starting at 0 * - * @param integer $key + * @param int $key * @return mixed */ public function getAtPosition(int $key = 0, $default = null): mixed diff --git a/src/Geometry/Point.php b/src/Geometry/Point.php index 54042b0e..94879512 100644 --- a/src/Geometry/Point.php +++ b/src/Geometry/Point.php @@ -24,7 +24,7 @@ class Point implements PointInterface /** * Sets X coordinate * - * @param integer $x + * @param int $x */ public function setX(int $x): self { @@ -36,7 +36,7 @@ class Point implements PointInterface /** * Get X coordinate * - * @return integer + * @return int */ public function x(): int { @@ -46,7 +46,7 @@ class Point implements PointInterface /** * Sets Y coordinate * - * @param integer $y + * @param int $y */ public function setY(int $y): self { @@ -58,7 +58,7 @@ class Point implements PointInterface /** * Get Y coordinate * - * @return integer + * @return int */ public function y(): int { @@ -68,7 +68,7 @@ class Point implements PointInterface /** * Move X coordinate * - * @param integer $value + * @param int $value */ public function moveX(int $value): self { @@ -80,7 +80,7 @@ class Point implements PointInterface /** * Move Y coordinate * - * @param integer $value + * @param int $value */ public function moveY(int $value): self { @@ -97,8 +97,8 @@ class Point implements PointInterface /** * Sets both X and Y coordinate * - * @param integer $x - * @param integer $y + * @param int $x + * @param int $y * @return Point */ public function setPosition(int $x, int $y): self