smiley 2 tahun lalu
induk
melakukan
269cd0d3cd
3 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 1 2
      src/Detector/GridSampler.php
  2. 1 1
      src/Output/QRMarkupHTML.php
  3. 1 0
      src/Output/QRString.php

+ 1 - 2
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

+ 1 - 1
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{
 

+ 1 - 0
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