Fixes static analysis

This commit is contained in:
Italo
2022-07-27 14:47:04 -04:00
committed by GitHub
parent d18c9dcc5a
commit 397f119432
5 changed files with 5 additions and 2 deletions

View File

@@ -138,7 +138,6 @@ class CborDecoder
$val = static::parseExtraLength($val, $buf, $offset);
// @phpstan-ingnore-next-line
try {
return static::parseItemData($type, $val, $buf, $offset);
} catch (InvalidArgumentException $e) {
@@ -249,7 +248,7 @@ class CborDecoder
* @param \Laragear\WebAuthn\ByteBuffer $buf
* @param $offset
* @return \Laragear\WebAuthn\ByteBuffer|array|bool|float|int|string|null
* @throws \Laragear\WebAuthn\Exceptions\DataException
* @throws \Laragear\WebAuthn\Exceptions\DataException|\InvalidArgumentException
*/
protected static function parseItemData(
int $type,