Skip to content

Commit

Permalink
Merge pull request #50 from frankverhoeven/replace-json_encode
Browse files Browse the repository at this point in the history
Replace json_encode $params with DQL
  • Loading branch information
Naktibalda committed Jan 28, 2022
2 parents afcf8f4 + f3e5276 commit 8f6c868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Codeception/Module/Doctrine2.php
Expand Up @@ -870,7 +870,7 @@ protected function proceedSeeInRepository(string $entity, array $params = []): a
$this->debug($qb->getDQL());
$res = $qb->getQuery()->getArrayResult();

return ['True', (count($res) > 0), "$entity with " . json_encode($params, JSON_THROW_ON_ERROR)];
return ['True', (count($res) > 0), "$entity with " . $qb->getDQL()];
}

/**
Expand Down

0 comments on commit 8f6c868

Please sign in to comment.