Skip to content

Commit f326b1c

Browse files
removed unused variables
1 parent bf39202 commit f326b1c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/protocol/v6/structures/Vector.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,8 @@ public static function encode(array $data, ?TypeMarker $type = null): self
4949
}
5050
}
5151

52-
$minValue = count($data) ? min($data) : 0;
53-
$maxValue = count($data) ? max($data) : 0;
54-
5552
if ($type === null) {
56-
$type = self::detectTypeMarker($anyFloat, $minValue, $maxValue);
53+
$type = self::detectTypeMarker($anyFloat, count($data) ? min($data) : 0, count($data) ? max($data) : 0);
5754
}
5855

5956
$packFormat = '';

0 commit comments

Comments
 (0)