Skip to content

Commit f39f45a

Browse files
committed
Merge pull request #928 from FriendsOfSymfony/php7
Add PHP 7 compatibility
2 parents 75dcab2 + d1d217b commit f39f45a

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ php:
99
- 5.4
1010
- 5.5
1111
- 5.6
12-
- nightly
12+
- 7.0
1313
- hhvm
1414

1515
matrix:
@@ -19,7 +19,6 @@ matrix:
1919
- php: 5.6
2020
env: SYMFONY_VERSION='2.7.*'
2121
allow_failures:
22-
- php: nightly
2322
- php: hhvm
2423
fast_finish: true
2524

Resources/doc/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ The following code will execute a search against the Elasticsearch server:
183183

184184
```php
185185
$finder = $this->container->get('fos_elastica.finder.site.article');
186-
$boolQuery = new \Elastica\Query\Bool();
186+
$boolQuery = new \Elastica\Query\BoolQuery();
187187
188188
$fieldQuery = new \Elastica\Query\Match();
189189
$fieldQuery->setFieldQuery('title', 'I am a title string');

Tests/Elastica/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace FOS\ElasticaBundle\Tests\Client;
44

55
use Elastica\Request;
6-
use Elastica\Transport\Null as NullTransport;
6+
use Elastica\Transport\NullTransport;
77

88
class ClientTest extends \PHPUnit_Framework_TestCase
99
{

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"symfony/console": "~2.1",
1818
"symfony/form": "~2.1",
1919
"symfony/property-access": "~2.3",
20-
"ruflin/elastica": ">=0.90.10.0, <2.3-dev",
20+
"ruflin/elastica": "~2.1,<2.3",
2121
"psr/log": "~1.0"
2222
},
2323
"require-dev":{

0 commit comments

Comments
 (0)