From 4b0bf34adbea1d49586500f5dfdbc094af2fec29 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 19 Jun 2020 11:17:20 +0100 Subject: [PATCH] Location: add native typehints --- src/entity/Location.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/entity/Location.php b/src/entity/Location.php index efd9bb411..f9a59c50e 100644 --- a/src/entity/Location.php +++ b/src/entity/Location.php @@ -34,12 +34,7 @@ class Location extends Position{ /** @var float */ public $pitch; - /** - * @param float|int $x - * @param float|int $y - * @param float|int $z - */ - public function __construct($x = 0, $y = 0, $z = 0, float $yaw = 0.0, float $pitch = 0.0, ?World $world = null){ + public function __construct(float $x = 0, float $y = 0, float $z = 0, float $yaw = 0.0, float $pitch = 0.0, ?World $world = null){ $this->yaw = $yaw; $this->pitch = $pitch; parent::__construct($x, $y, $z, $world);