Make types more specific NO_CI

This commit is contained in:
Dennis Eichhorn 2020-02-05 16:49:53 +01:00 committed by GitHub
parent 98adcaad7c
commit f86a0aa6ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ class Point implements PointInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function getCoordinate($index) public function getCoordinate(int $index)
{ {
return $this->coordinates[$index]; return $this->coordinates[$index];
} }
@ -81,7 +81,7 @@ class Point implements PointInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function setCoordinate($index, $value) : void public function setCoordinate(int $index, $value) : void
{ {
$this->coordinates[$index] = $value; $this->coordinates[$index] = $value;
} }