From 2ae1a48ec054fe32783e4a17eb831440474cde41 Mon Sep 17 00:00:00 2001 From: codemasher Date: Wed, 3 Jun 2020 20:12:54 +0200 Subject: [PATCH] :wrench: run parent constructor after library check --- src/Output/QRFpdf.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Output/QRFpdf.php b/src/Output/QRFpdf.php index f30e12048..89de01ae3 100644 --- a/src/Output/QRFpdf.php +++ b/src/Output/QRFpdf.php @@ -30,13 +30,14 @@ use function array_values, class_exists, count, is_array; class QRFpdf extends QROutputAbstract{ public function __construct(SettingsContainerInterface $options, QRMatrix $matrix){ - parent::__construct($options, $matrix); if(!class_exists(FPDF::class)){ throw new BadMethodCallException( 'The QRFpdf output requires FPDF as dependency but the class "\FPDF" couldn\'t be found.' ); } + + parent::__construct($options, $matrix); } /**