diff options
-rw-r--r-- | src/Components/AlterOperation.php | 2 | ||||
-rw-r--r-- | src/Components/ArrayObj.php | 2 | ||||
-rw-r--r-- | src/Components/CaseExpression.php | 2 | ||||
-rw-r--r-- | src/Components/Condition.php | 6 | ||||
-rw-r--r-- | src/Components/CreateDefinition.php | 4 | ||||
-rw-r--r-- | src/Components/DataType.php | 2 | ||||
-rw-r--r-- | src/Components/Expression.php | 2 | ||||
-rw-r--r-- | src/Components/FunctionCall.php | 2 | ||||
-rw-r--r-- | src/Components/GroupKeyword.php | 4 | ||||
-rw-r--r-- | src/Components/IndexHint.php | 6 | ||||
-rw-r--r-- | src/Components/IntoKeyword.php | 2 | ||||
-rw-r--r-- | src/Components/JoinKeyword.php | 8 | ||||
-rw-r--r-- | src/Components/Key.php | 2 | ||||
-rw-r--r-- | src/Components/Limit.php | 2 | ||||
-rw-r--r-- | src/Components/LockExpression.php | 2 | ||||
-rw-r--r-- | src/Components/OptionsArray.php | 2 | ||||
-rw-r--r-- | src/Components/OrderKeyword.php | 4 | ||||
-rw-r--r-- | src/Components/ParameterDefinition.php | 4 | ||||
-rw-r--r-- | src/Components/PartitionDefinition.php | 2 | ||||
-rw-r--r-- | src/Components/Reference.php | 2 | ||||
-rw-r--r-- | src/Components/RenameOperation.php | 4 | ||||
-rw-r--r-- | src/Components/SetOperation.php | 4 |
22 files changed, 35 insertions, 35 deletions
diff --git a/src/Components/AlterOperation.php b/src/Components/AlterOperation.php index 9d2393a..2b83ae5 100644 --- a/src/Components/AlterOperation.php +++ b/src/Components/AlterOperation.php @@ -181,7 +181,7 @@ class AlterOperation extends Component */ public static function parse(Parser $parser, TokensList $list, array $options = []) { - $ret = new self(); + $ret = new static(); /** * Counts brackets. diff --git a/src/Components/ArrayObj.php b/src/Components/ArrayObj.php index 7748be9..6b90a3f 100644 --- a/src/Components/ArrayObj.php +++ b/src/Components/ArrayObj.php @@ -55,7 +55,7 @@ class ArrayObj extends Component */ public static function parse(Parser $parser, TokensList $list, array $options = []) { - $ret = empty($options['type']) ? new self() : []; + $ret = empty($options['type']) ? new static() : []; /** * The last raw expression. diff --git a/src/Components/CaseExpression.php b/src/Components/CaseExpression.php index 309f0ff..4bd347d 100644 --- a/src/Components/CaseExpression.php +++ b/src/Components/CaseExpression.php @@ -86,7 +86,7 @@ class CaseExpression extends Component */ public static function parse(Parser $parser, TokensList $list, array $options = []) { - $ret = new self(); + $ret = new static(); /** * State of parser. diff --git a/src/Components/Condition.php b/src/Components/Condition.php index c37ce19..4ad9864 100644 --- a/src/Components/Condition.php +++ b/src/Components/Condition.php @@ -101,7 +101,7 @@ class Condition extends Component { $ret = []; - $expr = new self(); + $expr = new static(); /** * Counts brackets. @@ -159,12 +159,12 @@ class Condition extends Component } // Adding the operator. - $expr = new self($token->value); + $expr = new static($token->value); $expr->isOperator = true; $ret[] = $expr; // Preparing to parse another condition. - $expr = new self(); + $expr = new static(); continue; } } diff --git a/src/Components/CreateDefinition.php b/src/Components/CreateDefinition.php index 3d3a3f4..388a080 100644 --- a/src/Components/CreateDefinition.php +++ b/src/Components/CreateDefinition.php @@ -176,7 +176,7 @@ class CreateDefinition extends Component { $ret = []; - $expr = new self(); + $expr = new static(); /** * The state of the parser. @@ -285,7 +285,7 @@ class CreateDefinition extends Component if (! empty($expr->type) || ! empty($expr->key)) { $ret[] = $expr; } - $expr = new self(); + $expr = new static(); if ($token->value === ',') { $state = 1; } elseif ($token->value === ')') { diff --git a/src/Components/DataType.php b/src/Components/DataType.php index 5be45c6..8218e5b 100644 --- a/src/Components/DataType.php +++ b/src/Components/DataType.php @@ -98,7 +98,7 @@ class DataType extends Component */ public static function parse(Parser $parser, TokensList $list, array $options = []) { - $ret = new self(); + $ret = new static(); /** * The state of the parser. diff --git a/src/Components/Expression.php b/src/Components/Expression.php index 7a71c76..9c21def 100644 --- a/src/Components/Expression.php +++ b/src/Components/Expression.php @@ -157,7 +157,7 @@ class Expression extends Component */ public static function parse(Parser $parser, TokensList $list, array $options = []) { - $ret = new self(); + $ret = new static(); /** * Whether current tokens make an expression or a table reference. diff --git a/src/Components/FunctionCall.php b/src/Components/FunctionCall.php index 382ee8f..073b0e3 100644 --- a/src/Components/FunctionCall.php +++ b/src/Components/FunctionCall.php @@ -59,7 +59,7 @@ class FunctionCall extends Component */ public static function parse(Parser $parser, TokensList $list, array $options = []) { - $ret = new self(); + $ret = new static(); /** * The state of the parser. diff --git a/src/Components/GroupKeyword.php b/src/Components/GroupKeyword.php index 9aa583d..bef1ebe 100644 --- a/src/Components/GroupKeyword.php +++ b/src/Components/GroupKeyword.php @@ -48,7 +48,7 @@ class GroupKeyword extends Component { $ret = []; - $expr = new self(); + $expr = new static(); /** * The state of the parser. @@ -96,7 +96,7 @@ class GroupKeyword extends Component if (! empty($expr->expr)) { $ret[] = $expr; } - $expr = new self(); + $expr = new static(); $state = 0; } else { break; diff --git a/src/Components/IndexHint.php b/src/Components/IndexHint.php index a0cb0f1..7484172 100644 --- a/src/Components/IndexHint.php +++ b/src/Components/IndexHint.php @@ -74,7 +74,7 @@ class IndexHint extends Component public static function parse(Parser $parser, TokensList $list, array $options = []) { $ret = []; - $expr = new self(); + $expr = new static(); $expr->type = isset($options['type']) ? $options['type'] : null; /** * The state of the parser. @@ -143,7 +143,7 @@ class IndexHint extends Component $expr->indexes = ExpressionArray::parse($parser, $list); $state = 0; $ret[] = $expr; - $expr = new self(); + $expr = new static(); } break; case 3: @@ -163,7 +163,7 @@ class IndexHint extends Component $expr->indexes = ExpressionArray::parse($parser, $list); $state = 0; $ret[] = $expr; - $expr = new self(); + $expr = new static(); break; } } diff --git a/src/Components/IntoKeyword.php b/src/Components/IntoKeyword.php index 1941c22..cebfa7a 100644 --- a/src/Components/IntoKeyword.php +++ b/src/Components/IntoKeyword.php @@ -145,7 +145,7 @@ class IntoKeyword extends Component */ public static function parse(Parser $parser, TokensList $list, array $options = []) { - $ret = new self(); + $ret = new static(); /** * The state of the parser. 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; } } diff --git a/src/Components/Key.php b/src/Components/Key.php index 37e51a4..b924c87 100644 --- a/src/Components/Key.php +++ b/src/Components/Key.php @@ -104,7 +104,7 @@ class Key extends Component */ public static function parse(Parser $parser, TokensList $list, array $options = []) { - $ret = new self(); + $ret = new static(); /** * Last parsed column. diff --git a/src/Components/Limit.php b/src/Components/Limit.php index edb25fb..e18219d 100644 --- a/src/Components/Limit.php +++ b/src/Components/Limit.php @@ -55,7 +55,7 @@ class Limit extends Component */ public static function parse(Parser $parser, TokensList $list, array $options = []) { - $ret = new self(); + $ret = new static(); $offset = false; diff --git a/src/Components/LockExpression.php b/src/Components/LockExpression.php index 8bf03ce..039d011 100644 --- a/src/Components/LockExpression.php +++ b/src/Components/LockExpression.php @@ -43,7 +43,7 @@ class LockExpression extends Component */ public static function parse(Parser $parser, TokensList $list, array $options = []) { - $ret = new self(); + $ret = new static(); /** * The state of the parser. diff --git a/src/Components/OptionsArray.php b/src/Components/OptionsArray.php index f872b14..ac6d7de 100644 --- a/src/Components/OptionsArray.php +++ b/src/Components/OptionsArray.php @@ -49,7 +49,7 @@ class OptionsArray extends Component */ public static function parse(Parser $parser, TokensList $list, array $options = []) { - $ret = new self(); + $ret = new static(); /** * The ID that will be assigned to duplicate options. diff --git a/src/Components/OrderKeyword.php b/src/Components/OrderKeyword.php index 820fdd1..7d80683 100644 --- a/src/Components/OrderKeyword.php +++ b/src/Components/OrderKeyword.php @@ -57,7 +57,7 @@ class OrderKeyword extends Component { $ret = []; - $expr = new self(); + $expr = new static(); /** * The state of the parser. @@ -105,7 +105,7 @@ class OrderKeyword extends Component if (! empty($expr->expr)) { $ret[] = $expr; } - $expr = new self(); + $expr = new static(); $state = 0; } else { break; diff --git a/src/Components/ParameterDefinition.php b/src/Components/ParameterDefinition.php index d4165ee..9294273 100644 --- a/src/Components/ParameterDefinition.php +++ b/src/Components/ParameterDefinition.php @@ -67,7 +67,7 @@ class ParameterDefinition extends Component { $ret = []; - $expr = new self(); + $expr = new static(); /** * The state of the parser. @@ -127,7 +127,7 @@ class ParameterDefinition extends Component $state = 3; } elseif ($state === 3) { $ret[] = $expr; - $expr = new self(); + $expr = new static(); if ($token->value === ',') { $state = 1; } elseif ($token->value === ')') { diff --git a/src/Components/PartitionDefinition.php b/src/Components/PartitionDefinition.php index 58223ea..e43f765 100644 --- a/src/Components/PartitionDefinition.php +++ b/src/Components/PartitionDefinition.php @@ -119,7 +119,7 @@ class PartitionDefinition extends Component */ public static function parse(Parser $parser, TokensList $list, array $options = []) { - $ret = new self(); + $ret = new static(); /** * The state of the parser. diff --git a/src/Components/Reference.php b/src/Components/Reference.php index 4077f77..aac73ac 100644 --- a/src/Components/Reference.php +++ b/src/Components/Reference.php @@ -85,7 +85,7 @@ class Reference extends Component */ public static function parse(Parser $parser, TokensList $list, array $options = []) { - $ret = new self(); + $ret = new static(); /** * The state of the parser. diff --git a/src/Components/RenameOperation.php b/src/Components/RenameOperation.php index d11a187..0008a41 100644 --- a/src/Components/RenameOperation.php +++ b/src/Components/RenameOperation.php @@ -57,7 +57,7 @@ class RenameOperation extends Component { $ret = []; - $expr = new self(); + $expr = new static(); /** * The state of the parser. @@ -140,7 +140,7 @@ class RenameOperation extends Component } elseif ($state === 3) { if (($token->type === Token::TYPE_OPERATOR) && ($token->value === ',')) { $ret[] = $expr; - $expr = new self(); + $expr = new static(); $state = 0; } else { break; diff --git a/src/Components/SetOperation.php b/src/Components/SetOperation.php index 4c8ced3..2d76704 100644 --- a/src/Components/SetOperation.php +++ b/src/Components/SetOperation.php @@ -57,7 +57,7 @@ class SetOperation extends Component { $ret = []; - $expr = new self(); + $expr = new static(); /** * The state of the parser. @@ -129,7 +129,7 @@ class SetOperation extends Component $expr->column = trim($expr->column); $expr->value = $tmp->expr; $ret[] = $expr; - $expr = new self(); + $expr = new static(); $state = 0; $commaLastSeenAt = null; } |