Skip to content

Commit 42cb43d

Browse files
committed
fix for phpstan 1.5.3
because of phpstan/phpstan-src#1126
1 parent 1c8de44 commit 42cb43d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Vector3.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ public function floor() : Vector3{
105105
return new Vector3((int) floor($this->x), (int) floor($this->y), (int) floor($this->z));
106106
}
107107

108+
/**
109+
* @phpstan-param 1|2|3|4 $mode
110+
*/
108111
public function round(int $precision = 0, int $mode = PHP_ROUND_HALF_UP) : Vector3{
109112
return $precision > 0 ?
110113
new Vector3(round($this->x, $precision, $mode), round($this->y, $precision, $mode), round($this->z, $precision, $mode)) :

0 commit comments

Comments
 (0)