Skip to content

Commit

Permalink
Merge pull request #1072 from etrappg/master
Browse files Browse the repository at this point in the history
[fix] using ${var} in strings is deprecated
  • Loading branch information
catfan authored Jan 16, 2023
2 parents 05fede2 + cd55e7c commit d6430bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Medoo.php
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ protected function dataImplode(array $data, array &$map, string $conjunctor): st
$operator = $match['operator'] ?? null;

if ($isIndex && isset($match[4]) && in_array($operator, ['>', '>=', '<', '<=', '=', '!='])) {
$stack[] = "${column} ${operator} " . $this->columnQuote($match[4]);
$stack[] = "{$column} {$operator} " . $this->columnQuote($match[4]);
continue;
}

Expand Down Expand Up @@ -1318,7 +1318,7 @@ protected function buildJoin(string $table, array $join, array &$map): string
$tableName .= ' AS ' . $this->tableQuote($match['alias']);
}

$tableJoin[] = $type[$match['join']] . " JOIN ${tableName} ${relation}";
$tableJoin[] = $type[$match['join']] . " JOIN {$tableName} {$relation}";
}

return implode(' ', $tableJoin);
Expand Down

0 comments on commit d6430bb

Please sign in to comment.