| @@ -281,9 +281,9 @@ | ||
| 281 | 281 | /** |
| 282 | 282 | * Reads first 8 bytes of a string and return IEEE 754 float. |
| 283 | 283 | * |
| 284 | 284 | * @param string $data Binary string that is at least 8 bytes long |
| 285 | - * @return float|int | |
| 285 | + * @return int|float | |
| 286 | 286 | */ |
| 287 | 287 | protected static function extractNumber(string $data) |
| 288 | 288 | { |
| 289 | 289 | $rknumhigh = self::getInt4d($data, 4); |
| @@ -395,9 +395,9 @@ | ||
| 395 | 395 | public static function getInt2d(string $data, int $pos): int |
| 396 | 396 | { |
| 397 | 397 | self::confirmPos($data, $pos + 1); |
| 398 | 398 | |
| 399 | - return unpack('s', $data[$pos] . $data[$pos + 1])[1]; // @phpstan-ignore-line | |
| 399 | + return unpack('s', $data[$pos] . $data[$pos + 1])[1]; // @phpstan-ignore offsetAccess.nonOffsetAccessible (I don't know how this statement works), return.type (ditto) | |
| 400 | 400 | } |
| 401 | 401 | |
| 402 | 402 | /** |
| 403 | 403 | * Read 32-bit signed integer. |