Completed
Push — master ( 3e0293...55b02b )
by Nicolas
02:41
created

lib/Elastica/Query/MatchNone.php (1 issue)

assigning incompatible types to properties.

Bug Documentation Major

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
namespace Elastica\Query;
3
4
/**
5
 * Match none query. Returns no results.
6
 *
7
 * @author David Causse
8
 *
9
 * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-all-query.html#query-dsl-match-none-query
10
 */
11
class MatchNone extends AbstractQuery
12
{
13
    /**
14
     * Creates match none query.
15
     */
16
    public function __construct()
17
    {
18
        $this->_params = new \stdClass();
0 ignored issues
show
Documentation Bug introduced by
It seems like new \stdClass() of type object<stdClass> is incompatible with the declared type array of property $_params.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
19
    }
20
}
21