mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-18 17:55:34 +00:00
:octocat: use a proper constant for data mode
This commit is contained in:
@@ -39,7 +39,7 @@ final class AlphaNum extends QRDataModeAbstract{
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
protected static int $datamode = Mode::ALPHANUM;
|
||||
public const DATAMODE = Mode::ALPHANUM;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
@@ -73,7 +73,7 @@ final class AlphaNum extends QRDataModeAbstract{
|
||||
$len = $this->getCharCount();
|
||||
|
||||
$bitBuffer
|
||||
->put($this::$datamode, 4)
|
||||
->put(self::DATAMODE, 4)
|
||||
->put($len, $this::getLengthBits($versionNumber))
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user