Skip to content

Commit

Permalink
Merge b63c50f into 3574121
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf committed Dec 13, 2019
2 parents 3574121 + b63c50f commit 6343502
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Expand Up @@ -42,3 +42,10 @@ jobs:
- *composerupdate
script:
- *phpunit
- stage: test
php: 7.4
env: PREFER_LOWEST=""
before_script:
- *composerupdate
script:
- *phpunit
4 changes: 2 additions & 2 deletions src/SQLParser/Node/NodeFactory.php
Expand Up @@ -183,7 +183,7 @@ public static function toObject(array $desc)
}
$expr->setJoinType($joinType);

if (isset($desc['alias'])) {
if (isset($desc['alias']['name'])) {
$expr->setAlias($desc['alias']['name']);
}
$subTreeNodes = self::buildFromSubtree($desc['ref_clause']);
Expand Down Expand Up @@ -366,7 +366,7 @@ public static function toObject(array $desc)
$expr->setSubTree(self::buildFromSubtree($desc['sub_tree']));
}

if (isset($desc['alias'])) {
if (isset($desc['alias']['name'])) {
$expr->setAlias($desc['alias']['name']);
}
if (isset($desc['direction'])) {
Expand Down

0 comments on commit 6343502

Please sign in to comment.