Skip to content

Commit

Permalink
Fix broken CI due to newest version of PHPStan (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-georgiev authored Aug 20, 2022
1 parent 363ad3a commit 08173c9
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Doctrine\ORM\Configuration;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Query\AST\Functions\FunctionNode;
use PHPUnit\Framework\TestCase as BaseTestCase;

abstract class TestCase extends BaseTestCase
Expand Down Expand Up @@ -61,8 +62,11 @@ private function setConfigurationCache(Configuration $configuration): void

private function registerFunction(): void
{
foreach ($this->getStringFunctions() as $dqlFunction => $functionClass) {
$this->configuration->addCustomStringFunction($dqlFunction, $functionClass);
/**
* @var class-string<FunctionNode> $functionClassName
*/
foreach ($this->getStringFunctions() as $dqlFunction => $functionClassName) {
$this->configuration->addCustomStringFunction($dqlFunction, $functionClassName);
}
}

Expand Down

0 comments on commit 08173c9

Please sign in to comment.