mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-17 17:25:28 +00:00
:octocat: remove non-empty content restriction
This commit is contained in:
+2
-5
@@ -60,16 +60,13 @@ final class QRData{
|
||||
* @param \chillerlan\Settings\SettingsContainerInterface $options
|
||||
* @param \chillerlan\QRCode\Data\QRDataModeInterface[]|null $dataSegments
|
||||
*/
|
||||
public function __construct(SettingsContainerInterface $options, array $dataSegments = null){
|
||||
public function __construct(SettingsContainerInterface $options, array $dataSegments = []){
|
||||
$this->options = $options;
|
||||
$this->bitBuffer = new BitBuffer;
|
||||
$this->eccLevel = new EccLevel($this->options->eccLevel);
|
||||
$this->maxBitsForEcc = $this->eccLevel->getMaxBits();
|
||||
|
||||
if(!empty($dataSegments)){
|
||||
$this->setData($dataSegments);
|
||||
}
|
||||
|
||||
$this->setData($dataSegments);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user