From baf97b31aa8aa89e91d6223fd66de69681d6f55e Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sun, 20 Dec 2020 18:10:29 +0100 Subject: [PATCH] Suppress psalm issue See https://github.com/vimeo/psalm/issues/4868 --- src/Admin/AbstractAdmin.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Admin/AbstractAdmin.php b/src/Admin/AbstractAdmin.php index 2c37b6634a1..4a8de168ae6 100644 --- a/src/Admin/AbstractAdmin.php +++ b/src/Admin/AbstractAdmin.php @@ -1239,6 +1239,12 @@ public function getTemplate($name) return $this->getTemplateRegistry()->getTemplate($name); } + /** + * @see https://github.com/vimeo/psalm/issues/4868 for the psalm-suppress + * + * @psalm-suppress InvalidReturnStatement + * @psalm-suppress InvalidReturnType + */ public function getNewInstance() { $object = $this->getModelManager()->getModelInstance($this->getClass());