Skip to content

Commit

Permalink
Change for PHP 5.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaasuni committed Oct 20, 2023
1 parent 14edf94 commit c5ec9a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Type/Square/Aztec.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected function setParameters()
$this->mode = $this->params[2];

// eci code. Used to set the charset encoding. See $this->eci.
if (!isset($this->params[3]) || !isset(Data::ECI[$this->params[3]])) {
if (!isset($this->params[3]) || !array_key_exists($this->params[3], Data::ECI)) {
$this->params[3] = -1;
}
$this->eci = intval($this->params[3]);
Expand Down

0 comments on commit c5ec9a0

Please sign in to comment.