From 269cd0d3cd22b7481a8bb2390771ab6626e792ef Mon Sep 17 00:00:00 2001 From: smiley Date: Thu, 13 Jul 2023 23:16:06 +0200 Subject: [PATCH] :shower: --- src/Detector/GridSampler.php | 3 +-- src/Output/QRMarkupHTML.php | 2 +- src/Output/QRString.php | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Detector/GridSampler.php b/src/Detector/GridSampler.php index 1a79b0813..0d915e3e0 100644 --- a/src/Detector/GridSampler.php +++ b/src/Detector/GridSampler.php @@ -13,7 +13,6 @@ namespace chillerlan\QRCode\Detector; use chillerlan\QRCode\Data\QRMatrix; use chillerlan\QRCode\Decoder\BitMatrix; -use Throwable; use function array_fill, count, intdiv, sprintf; /** @@ -163,7 +162,7 @@ final class GridSampler{ ); } # } -# catch(Throwable $aioobe){//ArrayIndexOutOfBoundsException +# catch(\Throwable $aioobe){//ArrayIndexOutOfBoundsException // This feels wrong, but, sometimes if the finder patterns are misidentified, the resulting // transform gets "twisted" such that it maps a straight line of points to a set of points // whose endpoints are in bounds, but others are not. There is probably some mathematical diff --git a/src/Output/QRMarkupHTML.php b/src/Output/QRMarkupHTML.php index f747d27c2..c7776ab9b 100644 --- a/src/Output/QRMarkupHTML.php +++ b/src/Output/QRMarkupHTML.php @@ -13,7 +13,7 @@ namespace chillerlan\QRCode\Output; use function sprintf; /** - * HTML output + * HTML output (a cheap markup substitute when SVG is not available or not an option) */ class QRMarkupHTML extends QRMarkup{ diff --git a/src/Output/QRString.php b/src/Output/QRString.php index 5c05a6de6..1bd09d293 100644 --- a/src/Output/QRString.php +++ b/src/Output/QRString.php @@ -14,6 +14,7 @@ namespace chillerlan\QRCode\Output; use function implode, is_string, json_encode; +use const JSON_THROW_ON_ERROR; /** * Converts the matrix data into string types