From 7ba678a4964dfc1645c4b1f039409a5f85adeb87 Mon Sep 17 00:00:00 2001 From: leemyong pakvn <3759923+leemyongpakvn@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:34:17 +0700 Subject: [PATCH] phpstan ignore errors --- src/Form/PsreassuranceFormDataHandler.php | 4 ++-- tests/phpstan/phpstan.neon | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Form/PsreassuranceFormDataHandler.php b/src/Form/PsreassuranceFormDataHandler.php index 80df1ebb..0c174f4d 100644 --- a/src/Form/PsreassuranceFormDataHandler.php +++ b/src/Form/PsreassuranceFormDataHandler.php @@ -83,7 +83,7 @@ public function update($id, array $data) * @param Psreassurance $psreassurance * @param array $psr_languages * @param int $type_link - * @param int $id_cms + * @param int $id_cms * * @todo migrate this temporary function to above standard function create */ @@ -121,7 +121,7 @@ public function createLangs($psreassurance, $psr_languages, $type_link, $id_cms) * @param Psreassurance $psreassurance * @param array $psr_languages * @param int $type_link - * @param int $id_cms + * @param int $id_cms * * @todo migrate this temporary function to above standard function update */ diff --git a/tests/phpstan/phpstan.neon b/tests/phpstan/phpstan.neon index 0568ea62..f66651e5 100644 --- a/tests/phpstan/phpstan.neon +++ b/tests/phpstan/phpstan.neon @@ -9,3 +9,7 @@ parameters: - ../../translations/ - ../../upgrade/ level: 5 + ignoreErrors: + - + message: '#Cannot call method [a-zA-Z0-9\\_]+\(\) on object\|false.#' + path: ../../blockreassurance.php