Skip to content

Commit e0e0983

Browse files
committed
Null and Bool are reserved phrases in PHP 7
1 parent ccb67f2 commit e0e0983

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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
{

0 commit comments

Comments
 (0)