mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-08 04:46:04 +00:00
🔥 v6.0 first pass: PHP 8.2, remove deprecated elements, add type hints
This commit is contained in:
+2
-2
@@ -10,14 +10,14 @@
|
||||
|
||||
use chillerlan\QRCode\{QRCode, QROptions};
|
||||
use chillerlan\QRCode\Data\QRMatrix;
|
||||
use chillerlan\QRCode\Output\QROutputInterface;
|
||||
use chillerlan\QRCode\Output\QREps;
|
||||
|
||||
require_once __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
$options = new QROptions;
|
||||
|
||||
$options->version = 7;
|
||||
$options->outputType = QROutputInterface::EPS;
|
||||
$options->outputInterface = QREps::class;
|
||||
$options->scale = 5;
|
||||
$options->drawLightModules = false;
|
||||
// colors can be specified either as [R, G, B] or [C, M, Y, K] (0-255)
|
||||
|
||||
Reference in New Issue
Block a user