diff options
Diffstat (limited to 'src/Utils/Misc.php')
-rw-r--r-- | src/Utils/Misc.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Utils/Misc.php b/src/Utils/Misc.php index 4332ae0..55ae33b 100644 --- a/src/Utils/Misc.php +++ b/src/Utils/Misc.php @@ -3,6 +3,7 @@ namespace SqlParser\Utils; use SqlParser\Statement; +use SqlParser\Statements\SelectStatement; /** * Miscellaneous utilities. @@ -19,12 +20,12 @@ class Misc /** * Gets a list of all aliases and their original names. * - * @param Statement $tree The tree that was generated after parsing. - * @param string $database The name of the database. + * @param SelectStatement $tree The tree that was generated after parsing. + * @param string $database The name of the database. * * @return array */ - public static function getAliases(Statement $tree, $database) + public static function getAliases($tree, $database) { if ((empty($tree->from)) || (empty($tree->expr))) { return array(); |