diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index 4f2100e23d2e..650b4000f103 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -1207,7 +1207,7 @@ class Invoice extends EntityModel implements BalanceAffecting } $pdfString = strip_tags($pdfString); - } catch (Exception $exception) { + } catch (\Exception $exception) { Utils::logError("PhantomJS - Failed to create pdf: {$exception->getMessage()}"); return false; }