mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-25 01:17:55 +00:00
🚿
This commit is contained in:
@@ -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{
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user