mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-22 03:35:45 +00:00
:octocat: make datamode field static
This commit is contained in:
@@ -19,7 +19,7 @@ abstract class QRDataModeAbstract implements QRDataModeInterface{
|
||||
/**
|
||||
* the current data mode: Num, Alphanum, Kanji, Byte
|
||||
*/
|
||||
protected int $datamode;
|
||||
protected static int $datamode;
|
||||
|
||||
/**
|
||||
* The data to write
|
||||
@@ -44,7 +44,7 @@ abstract class QRDataModeAbstract implements QRDataModeInterface{
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getDataMode():int{
|
||||
return $this->datamode;
|
||||
return $this::$datamode;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user