given.#'
- - '#Parameter \#6 \$idShop of method LinkCore::getModuleLink\(\) expects null, int given.#'
- - '#Parameter \#1 \$id_hook of method ModuleCore::updatePosition\(\) expects bool, int given.#'
- - '#Property TabCore::\$name \(string\) does not accept array.#'
- - '#Access to an undefined property PaymentModule::\$currentOrderReference.#'
- - '#Property CustomerCore::\$passwd \(int\) does not accept bool\|string.#'
- - '#Parameter \#4 \$ssl of method LinkCore::getModuleLink\(\) expects null, true given.#'
- - '#Parameter \#1 \$id of class Currency constructor expects null, int given.#'
- - '#Property OrderStateCore::\$name \(string\) does not accept array.#'
- - '#Parameter \#1 \$master of static method DbCore::getInstance\(\) expects bool, int given.#'
- - '#Parameter \#2 \$currency of static method ToolsCore::displayPrice\(\) expects array\|object\|null, int given.#'
-
- level: 5
+ paths:
+ # From PHPStan 0.12, paths to check are relative to the neon file
+ - ../../paymentexample.php
+ - ../../controllers/
+ - ../../upgrade/
+ ignoreErrors:
+ reportUnmatchedIgnoredErrors: false
+ level: 5
diff --git a/views/templates/hook/displayOrderConfirmation.tpl b/views/templates/hook/displayOrderConfirmation.tpl
index 4731fb3..d3ea551 100644
--- a/views/templates/hook/displayOrderConfirmation.tpl
+++ b/views/templates/hook/displayOrderConfirmation.tpl
@@ -17,7 +17,7 @@
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*}
-{if $transaction}
+{if !empty($transaction)}
{l s='Your transaction reference is %transaction%.' mod='paymentexample' sprintf=['%transaction%' => $transaction]}
diff --git a/views/templates/hook/displayOrderDetail.tpl b/views/templates/hook/displayOrderDetail.tpl
index a556606..a2f6377 100644
--- a/views/templates/hook/displayOrderDetail.tpl
+++ b/views/templates/hook/displayOrderDetail.tpl
@@ -17,7 +17,7 @@
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*}
-{if $transaction}
+{if !empty($transaction)}
{l s='Your transaction reference is %transaction%.' mod='paymentexample' sprintf=['%transaction%' => $transaction]}
diff --git a/views/templates/hook/displayPDFInvoice.tpl b/views/templates/hook/displayPDFInvoice.tpl
index 5850772..1a82065 100644
--- a/views/templates/hook/displayPDFInvoice.tpl
+++ b/views/templates/hook/displayPDFInvoice.tpl
@@ -17,6 +17,6 @@
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*}
-{if $transaction}
+{if !empty($transaction)}
{l s='Your transaction reference is %transaction%.' mod='paymentexample' sprintf=['%transaction%' => $transaction]}
{/if}
diff --git a/views/templates/hook/displayPaymentReturn.tpl b/views/templates/hook/displayPaymentReturn.tpl
index 7f42472..f4efd36 100644
--- a/views/templates/hook/displayPaymentReturn.tpl
+++ b/views/templates/hook/displayPaymentReturn.tpl
@@ -18,7 +18,7 @@
*}
- {if $transaction}
+ {if !empty($transaction)}
{l s='Your transaction reference is %transaction%.' mod='paymentexample' sprintf=['%transaction%' => $transaction]}
{/if}
{if $customer.is_logged && !$customer.is_guest}