Completed
Push — master ( 5ad7ea...0c833f )
by Ema
02:22
created

src/Query/MatchAll.php (1 issue)

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
3
namespace Elastica\Query;
4
5
/**
6
 * Match all query. Returns all results.
7
 *
8
 * @author Nicolas Ruflin <[email protected]>
9
 *
10
 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-all-query.html
11
 */
12
class MatchAll extends AbstractQuery
13
{
14
    /**
15
     * Creates match all query.
16
     */
17
    public function __construct()
18
    {
19
        $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...
20
    }
21
}
22