Skip to content

Commit

Permalink
Merge pull request #227 from sprain/fix-method-return-type
Browse files Browse the repository at this point in the history
Fix method return type
  • Loading branch information
sprain authored Oct 1, 2023
2 parents 3a751dc + f736e3b commit 7a645d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/PaymentPart/Output/AbstractOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function getLanguage(): ?string
return $this->language;
}

public function setPrintable(bool $printable): self
public function setPrintable(bool $printable): static
{
$this->printable = $printable;

Expand All @@ -46,7 +46,7 @@ public function isPrintable(): bool
return $this->printable;
}

public function setQrCodeImageFormat(string $fileExtension): self
public function setQrCodeImageFormat(string $fileExtension): static
{
$this->qrCodeImageFormat = $fileExtension;

Expand Down Expand Up @@ -164,8 +164,6 @@ protected function getFurtherInformationElements(): array

protected function getQrCode(): QrCode
{
$qrCode = $this->qrBill->getQrCode($this->getQrCodeImageFormat());

return $qrCode;
return $this->qrBill->getQrCode($this->getQrCodeImageFormat());
}
}
2 changes: 1 addition & 1 deletion src/PaymentPart/Output/FpdfOutput/FpdfOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function getPaymentPart(): void
$this->addFurtherInformationContent();
}

public function setQrCodeImageFormat(string $fileExtension): AbstractOutput
public function setQrCodeImageFormat(string $fileExtension): static
{
if (QrCode::FILE_FORMAT_SVG === $fileExtension) {
throw new InvalidFpdfImageFormat('SVG images are not allowed by FPDF.');
Expand Down

0 comments on commit 7a645d8

Please sign in to comment.