:octocat: remove non-empty content restriction

This commit is contained in:
smiley
2023-03-02 23:01:54 +01:00
parent 2b86a24ccc
commit ca56fe5ca9
3 changed files with 3 additions and 21 deletions
+2 -5
View File
@@ -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);
}
/**