From 304ea79a9aad38f895238216e3dfd87c04018df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Do=CC=88ring?= Date: Thu, 19 Sep 2019 10:49:36 +0200 Subject: [PATCH] Legacy array syntax --- src/Query/Sql/Base.php | 2 +- src/Translator/Mysql.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Query/Sql/Base.php b/src/Query/Sql/Base.php index 9ed9ab1..8620cba 100644 --- a/src/Query/Sql/Base.php +++ b/src/Query/Sql/Base.php @@ -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 diff --git a/src/Translator/Mysql.php b/src/Translator/Mysql.php index 41221b5..e483af8 100644 --- a/src/Translator/Mysql.php +++ b/src/Translator/Mysql.php @@ -240,7 +240,7 @@ protected function escape($string) */ public function escapeIdentifier($identifier) { - return '`' . str_replace(['`', "\0"], ['``',''], $identifier) . '`'; + return '`' . str_replace(array('`', "\0"), array('``',''), $identifier) . '`'; } /**