Skip to content

Commit

Permalink
Suppress psalm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Dec 20, 2020
1 parent 1c08c17 commit baf97b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Admin/AbstractAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit baf97b3

Please sign in to comment.