codemasher 4 лет назад
Родитель
Сommit
9c11f69581
2 измененных файлов с 1 добавлено и 2 удалено
  1. 1 1
      src/Decoder/IMagickLuminanceSource.php
  2. 0 1
      tests/QRCodeReaderTest.php

+ 1 - 1
src/Decoder/IMagickLuminanceSource.php

@@ -51,7 +51,7 @@ final class IMagickLuminanceSource extends LuminanceSourceAbstract{
 
 		if($this->options->readerIncreaseContrast){
 			for($i = 0; $i < 10; $i++){
-				$this->imagick->contrastImage(0);
+				$this->imagick->contrastImage(false); // misleading docs
 			}
 		}
 

+ 0 - 1
tests/QRCodeReaderTest.php

@@ -19,7 +19,6 @@ use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Decoder\{GDLuminanceSource, IMagickLuminanceSource};
 use PHPUnit\Framework\TestCase;
 use function extension_loaded, range, sprintf, str_repeat, substr;
-use const PHP_OS_FAMILY, PHP_VERSION_ID;
 
 /**
  * Tests the QR Code reader