From f3aa948341de27bce07edd0f7d8354e56fbf5cae Mon Sep 17 00:00:00 2001 From: Jan Perdoch Date: Tue, 9 Jan 2024 14:25:57 +0100 Subject: [PATCH] Return type can't be int because null can be returned --- src/TNEFDecoder/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TNEFDecoder/functions.php b/src/TNEFDecoder/functions.php index b03a937..1e57e07 100644 --- a/src/TNEFDecoder/functions.php +++ b/src/TNEFDecoder/functions.php @@ -77,7 +77,7 @@ function tnef_getx($size, TNEFBuffer $buf) * TNEF decoding helper function * */ -function tnef_geti8(TNEFBuffer $buf): int +function tnef_geti8(TNEFBuffer $buf) { $bytes = $buf->getBytes(1, $buf); if ($bytes === null) { @@ -93,7 +93,7 @@ function tnef_geti8(TNEFBuffer $buf): int * TNEF decoding helper function * */ -function tnef_geti16(TNEFBuffer $buf): int +function tnef_geti16(TNEFBuffer $buf) { $bytes = $buf->getBytes(2, $buf); if ($bytes === null) { @@ -110,7 +110,7 @@ function tnef_geti16(TNEFBuffer $buf): int * TNEF decoding helper function * */ -function tnef_geti32(TNEFBuffer $buf): int +function tnef_geti32(TNEFBuffer $buf) { $bytes = $buf->getBytes(4, $buf); if ($bytes === null) {