mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-24 13:27:53 +00:00
🚿 set SVG as default output
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user