Skip to content

Commit 80f889d

Browse files
committed
API-599: fix const not supported by PHP 5.6
1 parent e3c6d8c commit 80f889d

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ install:
2222
- composer install --prefer-dist --no-interaction
2323

2424
script:
25-
- bin/php-cs-fixer fix --diff --dry-run --config=.php_cs.php
25+
- bin/php-cs-fixer fix --diff --dry-run --config=.php_cs.php -vvv
2626
- bin/phpspec run --no-interaction
2727
- php -d error_reporting="E_ALL" bin/phpunit -c phpunit.xml.dist
2828

CHANGELOG-1.0.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# 2.0.1 (2018-04-05)
1+
# 1.0.x
2+
3+
## Bug Fixes
4+
5+
- API-599: fix const not supported by PHP 5.6
6+
7+
# 1.0.1 (2018-04-05)
28

39
## Improvements
410

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ rm -rf composer.lock vendor/
139139
docker-compose run client_56 composer install
140140
docker-compose run client_56 bin/phpunit -c phpunit.xml.dist
141141
docker-compose run client_56 bin/phpspec run
142-
docker-compose run client_56 bin/php-cs-fixer fix --diff --dry-run --config=.php_cs.php
142+
docker-compose run client_56 bin/php-cs-fixer fix --diff --dry-run --config=.php_cs.php -vvv
143143
```
144144

145145
## Support

spec/Search/SearchBuilderSpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ function it_builds_a_search_with_a_single_filter_without_options()
3131

3232
function it_builds_a_search_with_a_single_filter_without_value_nor_option()
3333
{
34-
$this->addFilter('family' , Operator::EMPTY)->shouldReturn($this);
34+
$this->addFilter('family' , Operator::IS_EMPTY)->shouldReturn($this);
3535

3636
$this->getFilters()->shouldReturn(
3737
[
3838
'family'=> [
3939
[
40-
'operator' => Operator::EMPTY,
40+
'operator' => Operator::IS_EMPTY,
4141
]
4242
]
4343
]

src/Search/Operator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class Operator
2727
const GREATER_OR_EQUALS_THAN_ON_ALL_LOCALES = 'GREATER OR EQUALS THAN ON ALL LOCALES';
2828
const LOWER_THAN_ON_ALL_LOCALES = 'LOWER THAN ON ALL LOCALES';
2929
const LOWER_OR_EQUALS_THAN_ON_ALL_LOCALES = 'LOWER OR EQUALS THAN ON ALL LOCALES';
30-
const EMPTY = 'EMPTY';
30+
const IS_EMPTY = 'EMPTY';
3131
const NOT_EMPTY = 'NOT EMPTY';
3232
const BETWEEN = 'BETWEEN';
3333
const NOT_BETWEEN = 'NOT BETWEEN';

0 commit comments

Comments
 (0)