This commit is contained in:
smiley
2022-05-10 14:53:59 +02:00
parent 2b2bda3de5
commit 8c75d8b2dc
9 changed files with 15 additions and 12 deletions
+4 -3
View File
@@ -223,9 +223,9 @@ final class BitMatrix{
/**
* Prepare the parser for a mirrored operation.
* This flag has effect only on the #readFormatInformation() and the
* #readVersion(). Before proceeding with #readCodewords() the
* #mirror() method should be called.
* This flag has effect only on the readFormatInformation() and the
* readVersion() methods. Before proceeding with readCodewords() the
* mirror() method should be called.
*
* @param bool $mirror Whether to read version and format information mirrored.
*/
@@ -426,6 +426,7 @@ final class BitMatrix{
* @return \chillerlan\QRCode\Common\Version encapsulating the QR Code's version
* @throws \chillerlan\QRCode\Decoder\QRCodeDecoderException if both version information locations cannot be parsed as
* the valid encoding of version information
* @noinspection DuplicatedCode
*/
private function readVersion():Version{
+1 -1
View File
@@ -44,7 +44,7 @@ class GDLuminanceSource extends LuminanceSourceAbstract{
(PHP_MAJOR_VERSION >= 8 && !$gdImage instanceof \GdImage)
|| (PHP_MAJOR_VERSION < 8 && (!is_resource($gdImage) || get_resource_type($gdImage) !== 'gd'))
){
throw new QRCodeDecoderException('Invalid GD image source.');
throw new QRCodeDecoderException('Invalid GD image source.'); // @codeCoverageIgnore
}
parent::__construct(imagesx($gdImage), imagesy($gdImage), $options);