diff options
author | MartkCz <antik494@gmail.com> | 2019-05-17 16:57:39 +0200 |
---|---|---|
committer | MartkCz <antik494@gmail.com> | 2019-05-17 16:57:39 +0200 |
commit | 8c3224fc527e52be3314bb74f42db54403ac3349 (patch) | |
tree | 3674aca258293ebb937a0801cdccbfefa7af4e0b /src/Components/JoinKeyword.php | |
parent | 0a6690b238e7821cb90ab71c78af4dc5610e5c2d (diff) | |
download | sql-parser-8c3224fc527e52be3314bb74f42db54403ac3349.zip sql-parser-8c3224fc527e52be3314bb74f42db54403ac3349.tar.gz sql-parser-8c3224fc527e52be3314bb74f42db54403ac3349.tar.bz2 |
Replaced new self with new static
Diffstat (limited to 'src/Components/JoinKeyword.php')
-rw-r--r-- | src/Components/JoinKeyword.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Components/JoinKeyword.php b/src/Components/JoinKeyword.php index 330c1f2..0c9dd70 100644 --- a/src/Components/JoinKeyword.php +++ b/src/Components/JoinKeyword.php @@ -102,7 +102,7 @@ class JoinKeyword extends Component { $ret = []; - $expr = new self(); + $expr = new static(); /** * The state of the parser. @@ -174,7 +174,7 @@ class JoinKeyword extends Component if (! empty(static::$JOINS[$token->keyword]) ) { $ret[] = $expr; - $expr = new self(); + $expr = new static(); $expr->type = static::$JOINS[$token->keyword]; $state = 1; } else { @@ -187,12 +187,12 @@ class JoinKeyword extends Component } elseif ($state === 3) { $expr->on = Condition::parse($parser, $list); $ret[] = $expr; - $expr = new self(); + $expr = new static(); $state = 0; } elseif ($state === 4) { $expr->using = ArrayObj::parse($parser, $list); $ret[] = $expr; - $expr = new self(); + $expr = new static(); $state = 0; } } |