🚿 set SVG as default output

This commit is contained in:
codemasher
2021-12-06 21:29:24 +01:00
parent 6006df8c9a
commit fbb2741a27
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ trait QROptionsTrait{
* - QRCode::OUTPUT_STRING_XXXX where XXXX = TEXT, JSON
* - QRCode::OUTPUT_CUSTOM
*/
protected string $outputType = QRCode::OUTPUT_IMAGE_PNG;
protected string $outputType = QRCode::OUTPUT_MARKUP_SVG;
/**
* the FQCN of the custom QROutputInterface if $outputType is set to QRCode::OUTPUT_CUSTOM
+2
View File
@@ -81,6 +81,7 @@ class QRCodeReaderTest extends TestCase{
public function testReaderMultiSegment():void{
$options = new QROptions;
$options->outputType = QRCode::OUTPUT_IMAGE_PNG;
$options->imageBase64 = false;
$numeric = '123456789012345678901234567890';
@@ -120,6 +121,7 @@ class QRCodeReaderTest extends TestCase{
public function testReadData(Version $version, EccLevel $ecc, string $expected):void{
$options = new QROptions;
$options->outputType = QRCode::OUTPUT_IMAGE_PNG;
# $options->imageTransparent = false;
$options->eccLevel = $ecc->getLevel();
$options->version = $version->getVersionNumber();