🔥 v6.0 first pass: PHP 8.2, remove deprecated elements, add type hints

This commit is contained in:
smiley
2023-11-25 12:49:56 +01:00
parent a301af5b7f
commit 39e3dfe83b
80 changed files with 332 additions and 1029 deletions
+2 -4
View File
@@ -13,8 +13,7 @@ namespace chillerlan\QRCodeTest\Data;
use chillerlan\QRCode\Common\BitBuffer;
use chillerlan\QRCode\Common\MaskPattern;
use chillerlan\QRCode\Data\QRData;
use chillerlan\QRCode\Output\QRGdImage;
use chillerlan\QRCode\Output\QROutputInterface;
use chillerlan\QRCode\Output\QRGdImagePNG;
use chillerlan\QRCode\QRCode;
use chillerlan\QRCode\QROptions;
use PHPUnit\Framework\TestCase;
@@ -51,11 +50,10 @@ final class QRDataTest extends TestCase{
$this::assertSame(3, $matrix->getVersion()->getVersionNumber());
// attempt to read
$options->outputType = QROutputInterface::GDIMAGE_PNG;
$options->outputBase64 = false;
$options->readerUseImagickIfAvailable = false;
$output = new QRGdImage($options, $matrix);
$output = new QRGdImagePNG($options, $matrix);
$decodeResult = (new QRCode($options))->readFromBlob($output->dump());
QRMatrixTest::debugMatrix($matrix);