From f86a0aa6edd47b153d33cef1fac69a275a1f4bda Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 5 Feb 2020 16:49:53 +0100 Subject: [PATCH] Make types more specific NO_CI --- Algorithm/Clustering/Point.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithm/Clustering/Point.php b/Algorithm/Clustering/Point.php index 06c55abe7..9900e06ec 100644 --- a/Algorithm/Clustering/Point.php +++ b/Algorithm/Clustering/Point.php @@ -73,7 +73,7 @@ class Point implements PointInterface /** * {@inheritdoc} */ - public function getCoordinate($index) + public function getCoordinate(int $index) { return $this->coordinates[$index]; } @@ -81,7 +81,7 @@ class Point implements PointInterface /** * {@inheritdoc} */ - public function setCoordinate($index, $value) : void + public function setCoordinate(int $index, $value) : void { $this->coordinates[$index] = $value; }