mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-06 11:57:23 +00:00
🚿 extract OUTPUT_* constants from QRCode to QROutputInterface and mark QRCode::OUTPUT_* as deprecated
This commit is contained in:
@@ -13,7 +13,7 @@ namespace chillerlan\QRCodeTest\Data;
|
||||
use chillerlan\QRCode\{QRCode, QROptions};
|
||||
use chillerlan\QRCode\Common\{EccLevel, MaskPattern, Version};
|
||||
use chillerlan\QRCode\Data\{QRCodeDataException, QRMatrix};
|
||||
use chillerlan\QRCode\Output\QRString;
|
||||
use chillerlan\QRCode\Output\{QROutputInterface, QRString};
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use PHPUnit\Util\Color;
|
||||
use Generator;
|
||||
@@ -42,7 +42,7 @@ final class QRMatrixTest extends TestCase{
|
||||
*/
|
||||
public static function debugMatrix(QRMatrix $matrix):void{
|
||||
$opt = new QROptions;
|
||||
$opt->outputType = QRCode::OUTPUT_STRING_TEXT;
|
||||
$opt->outputType = QROutputInterface::STRING_TEXT;
|
||||
$opt->eol = Color::colorize('reset', "\x00\n");
|
||||
$opt->moduleValues = [
|
||||
// finder
|
||||
|
||||
Reference in New Issue
Block a user