From a0ee6dadba1f1fe31f2b43d9969b482073ab9406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jakes=CC=8C?= Date: Mon, 9 Mar 2020 17:55:54 +0100 Subject: [PATCH] Ignore PHPStan error about EntityManager::getReference() type for now PHPStan's Doctrine extension doesn't recognize our prefixed version of Doctrine. We'll need to address this separately. [MAILPOET-2647] --- tasks/phpstan/phpstan-baseline-integration-tests.neon | 5 ++++- tasks/phpstan/phpstan-baseline.neon | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tasks/phpstan/phpstan-baseline-integration-tests.neon b/tasks/phpstan/phpstan-baseline-integration-tests.neon index 9bd07c7d28..3c4c99cb75 100644 --- a/tasks/phpstan/phpstan-baseline-integration-tests.neon +++ b/tasks/phpstan/phpstan-baseline-integration-tests.neon @@ -790,4 +790,7 @@ parameters: count: 1 path: ../../tests/integration/_bootstrap.php - + - + message: "#^Parameter \\#1 \\$newsletter of method MailPoet\\\\Entities\\\\NewsletterTemplateEntity\\:\\:setNewsletter\\(\\) expects MailPoet\\\\Entities\\\\NewsletterEntity\\|null, object given\\.$#" + count: 1 + path: ../../tests/integration/API/JSON/v1/NewsletterTemplatesTest.php diff --git a/tasks/phpstan/phpstan-baseline.neon b/tasks/phpstan/phpstan-baseline.neon index bd2be6aa47..40126acbcb 100644 --- a/tasks/phpstan/phpstan-baseline.neon +++ b/tasks/phpstan/phpstan-baseline.neon @@ -238,3 +238,8 @@ parameters: message: "#^Unreachable statement \\- code above always terminates\\.$#" count: 1 path: ../../lib/Util/DOM.php + + - + message: "#^Parameter \\#1 \\$newsletter of method MailPoet\\\\Entities\\\\NewsletterTemplateEntity\\:\\:setNewsletter\\(\\) expects MailPoet\\\\Entities\\\\NewsletterEntity\\|null, object given\\.$#" + count: 1 + path: ../../lib/NewsletterTemplates/NewsletterTemplatesRepository.php