Skip to content

Commit

Permalink
Legacy array syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-deluna committed Sep 19, 2019
1 parent 40b2764 commit 304ea79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Query/Sql/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function table($table, $alias = null)
}
elseif(is_string($table) && (!is_null($alias)))
{
$table = [$table => $alias];
$table = array($table => $alias);
}

// assing the result
Expand Down
2 changes: 1 addition & 1 deletion src/Translator/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ protected function escape($string)
*/
public function escapeIdentifier($identifier)
{
return '`' . str_replace(['`', "\0"], ['``',''], $identifier) . '`';
return '`' . str_replace(array('`', "\0"), array('``',''), $identifier) . '`';
}

/**
Expand Down

0 comments on commit 304ea79

Please sign in to comment.