diff --git a/.travis.yml b/.travis.yml index f52f76f..0dcec37 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ stages: php: - '7.2' - '7.3' + - '7.4' before_script: - java -Djava.library.path=./DynamoDBLocal_lib -jar dynamodb_local/DynamoDBLocal.jar --port 3000 & diff --git a/src/ConditionAnalyzer/Analyzer.php b/src/ConditionAnalyzer/Analyzer.php index 5ecba99..1d023e5 100644 --- a/src/ConditionAnalyzer/Analyzer.php +++ b/src/ConditionAnalyzer/Analyzer.php @@ -199,15 +199,13 @@ private function getIndex() private function hasValidQueryOperator($hash, $range = null) { - $hashCondition = $this->getCondition($hash); - - $validQueryOp = ComparisonOperator::isValidQueryDynamoDbOperator($hashCondition['type'] ?? null); + $hashConditionType = $this->getCondition($hash)['type'] ?? null; + $validQueryOp = ComparisonOperator::isValidQueryDynamoDbOperator($hashConditionType); if ($validQueryOp && $range) { - $rangeCondition = $this->getCondition($range); - + $rangeConditionType = $this->getCondition($range)['type'] ?? null; $validQueryOp = ComparisonOperator::isValidQueryDynamoDbOperator( - $rangeCondition['type'], + $rangeConditionType, true ); }