Skip to content
Snippets Groups Projects
Commit b0afbfaa authored by Mantas Varatiejus's avatar Mantas Varatiejus
Browse files

Exclude filters from CS checking

parent 8f5455c8
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ before_script:
- composer install --no-interaction --prefer-dist
script:
- vendor/bin/phpunit --coverage-clover=coverage.clover
- vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor/ ./
- vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor/,src/Filter/ ./
after_script:
- vendor/bin/coveralls
notifications:
......
......@@ -11,12 +11,6 @@
namespace ONGR\ElasticsearchDSL\Query;
@trigger_error(
'The FilteredQuery class is deprecated and will be removed in 2.0. ' .
'Use the "bool" query instead with a "filter" clause.',
E_USER_DEPRECATED
);
use ONGR\ElasticsearchDSL\BuilderInterface;
use ONGR\ElasticsearchDSL\ParametersTrait;
......@@ -47,6 +41,12 @@ class FilteredQuery implements BuilderInterface
*/
public function __construct($query = null, $filter = null)
{
@trigger_error(
'The FilteredQuery class is deprecated and will be removed in 2.0. ' .
'Use the "bool" query instead with a "filter" clause.',
E_USER_DEPRECATED
);
if ($query !== null) {
$this->setQuery($query);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment