Skip to content

Commit 35901eb

Browse files
committed
Fix PHP 8.4 deprecations
1 parent c21a11e commit 35901eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Qrcode/Decoder/Decoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function decodeBits(\Zxing\Common\BitMatrix $bits, $hints = null): string
147147
}
148148
}
149149

150-
private function decodeParser(\Zxing\Qrcode\Decoder\BitMatrixParser $parser, array $hints = null): DecoderResult
150+
private function decodeParser(\Zxing\Qrcode\Decoder\BitMatrixParser $parser, ?array $hints = null): DecoderResult
151151
{
152152
$version = $parser->readVersion();
153153
$ecLevel = $parser->readFormatInformation()->getErrorCorrectionLevel();

lib/Qrcode/Detector/Detector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct(private BitMatrix $image)
5252
* @throws NotFoundException if QR Code cannot be found
5353
* @throws FormatException if a QR Code cannot be decoded
5454
*/
55-
final public function detect(array $hints = null): DetectorResult
55+
final public function detect(?array $hints = null): DetectorResult
5656
{/*Map<DecodeHintType,?>*/
5757

5858
$resultPointCallback = ($hints !== null && array_key_exists('NEED_RESULT_POINT_CALLBACK', $hints)) ?

0 commit comments

Comments
 (0)