Skip to content

Commit 2b6d8d0

Browse files
committed
Support older versions
1 parent ee3963d commit 2b6d8d0

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,18 @@
2020
"ci-test": "vendor/bin/phpunit --coverage-clover coverage.xml"
2121
},
2222
"require": {
23-
"illuminate/support": "^6.0",
24-
"illuminate/container": "^6.0",
25-
"illuminate/database": "^6.0",
23+
"php": "^7.2",
24+
"illuminate/support": "^6.0|^7.0",
25+
"illuminate/container": "^6.0|^7.0",
26+
"illuminate/database": "^6.0|^7.0",
2627
"aws/aws-sdk-php": "^3.0"
2728
},
2829
"require-dev": {
29-
"illuminate/auth": "^6.0",
30+
"illuminate/auth": "^6.0|^7.0",
3031
"symfony/var-dumper": "^5.0",
3132
"vlucas/phpdotenv": "^4.1",
3233
"mockery/mockery": "^1.3",
33-
"phpunit/phpunit": "^9.0"
34+
"phpunit/phpunit": "^8.0|^9.0"
3435
},
3536
"autoload": {
3637
"psr-4": {

src/Kitar/Dynamodb/Query/Builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ protected function process($query_method, $processor_method)
445445
$this->grammar->compileProjectionExpression($this->columns, $this->expression_attributes),
446446
$this->grammar->compileConditions($this->filter_query),
447447
$this->grammar->compileConditions($this->condition_query),
448-
$this->grammar->compileConditions($this->key_condition_query),
448+
$this->grammar->compileConditions($this->key_condition_query)
449449
);
450450

451451
// Compile rest of attributes.
@@ -459,7 +459,7 @@ protected function process($query_method, $processor_method)
459459
$this->grammar->compileDynamodbLimit($this->limit),
460460
$this->grammar->compileExclusiveStartKey($this->exclusive_start_key),
461461
$this->grammar->compileConsistentRead($this->consistent_read),
462-
$this->grammar->compileExpressionAttributes($this->expression_attributes),
462+
$this->grammar->compileExpressionAttributes($this->expression_attributes)
463463
);
464464

465465
// Dry run.

tests/Helpers/NumberIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Kitar\Dynamodb\Tests;
3+
namespace Kitar\Dynamodb\Tests\Helpers;
44

55
use Kitar\Dynamodb\Helpers\NumberIterator;
66
use PHPUnit\Framework\TestCase;

0 commit comments

Comments
 (0)