Skip to content

Commit 4df8fc4

Browse files
authored
Merge pull request #59 from Kolyunya/patch-1
Fix deprecated string interpolation
2 parents 0caac17 + 85b81d6 commit 4df8fc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Codeception/Module/Doctrine2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -971,8 +971,8 @@ protected function _buildAssociationQuery(QueryBuilder $qb, string $assoc, strin
971971
if ($data->associationMappings !== null && array_key_exists($key, $data->associationMappings)) {
972972
$map = $data->associationMappings[$key];
973973
if (is_array($val)) {
974-
$qb->innerJoin("$alias.$key", "${alias}__$key");
975-
$this->_buildAssociationQuery($qb, $map['targetEntity'], "${alias}__$key", $val, $paramIndex);
974+
$qb->innerJoin("$alias.$key", "{$alias}__$key");
975+
$this->_buildAssociationQuery($qb, $map['targetEntity'], "{$alias}__$key", $val, $paramIndex);
976976
continue;
977977
}
978978
}

0 commit comments

Comments
 (0)