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]
This commit is contained in:
Jan Jakeš
2020-03-09 17:55:54 +01:00
committed by Veljko V
parent 72af35e2af
commit a0ee6dadba
2 changed files with 9 additions and 1 deletions

View File

@@ -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

View File

@@ -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