Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/4246' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Object/AbstractObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function __construct($options = null)
if (is_array($options)) {
$this->setOptions($options);
}
$this->type = strtolower(substr(get_called_class(), strlen($this->barcodeNamespace) + 1));
$this->type = strtolower(substr(get_class($this), strlen($this->barcodeNamespace) + 1));
if ($this->mandatoryChecksum) {
$this->withChecksum = true;
$this->withChecksumInText = true;
Expand Down
2 changes: 1 addition & 1 deletion src/Object/Ean13.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function getChecksum($text)
*/
protected function drawText()
{
if (get_called_class() == 'Zend\Barcode\Object\Ean13') {
if (get_class($this) == 'Zend\Barcode\Object\Ean13') {
$this->drawEan13Text();
} else {
parent::drawText();
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/AbstractRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function __construct($options = null)
$this->setOptions($options);
}
$this->type = strtolower(substr(
get_called_class(),
get_class($this),
strlen($this->rendererNamespace) + 1
));
}
Expand Down

0 comments on commit 5686261

Please sign in to comment.