File tree Expand file tree Collapse file tree 6 files changed +11
-8
lines changed
tests/SpameriTests/ElasticQuery/Response Expand file tree Collapse file tree 6 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ before_script:
99
1010script :
1111 - vendor/bin/tester -c tests/php.ini tests
12- - vendor/bin/phpstan analyse -l 7 src tests
12+ - vendor/bin/phpstan analyse -l 7 -c phpstan.neon src tests
Original file line number Diff line number Diff line change 1+ parameters :
2+ ignoreErrors :
3+ - "Call to function array_key_exists\ (\ ) with string and array\<int , mixed\> will always evaluate to false."
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public function filter() : \Spameri\ElasticQuery\Filter\FilterCollection
4444
4545
4646 public function add (
47- LeafAggregationInterface $ leafAggregation
47+ LeafAggregationCollection $ leafAggregation
4848 ) : void
4949 {
5050 $ this ->aggregations [$ leafAggregation ->key ()] = $ leafAggregation ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class Term implements LeafAggregationInterface
2525 private $ missing ;
2626
2727 /**
28- * @var string
28+ * @var ? string
2929 */
3030 private $ key ;
3131
Original file line number Diff line number Diff line change @@ -7,19 +7,19 @@ class Options
77{
88
99 /**
10- * @var int
10+ * @var ? int
1111 */
1212 private $ size ;
1313 /**
14- * @var int
14+ * @var ? int
1515 */
1616 private $ from ;
1717 /**
1818 * @var \Spameri\ElasticQuery\Options\SortCollection
1919 */
2020 private $ sort ;
2121 /**
22- * @var int
22+ * @var ?float
2323 */
2424 private $ minScore ;
2525
@@ -28,7 +28,7 @@ public function __construct(
2828 ?int $ size = NULL ,
2929 ?int $ from = NULL ,
3030 ?\Spameri \ElasticQuery \Options \SortCollection $ sort = NULL ,
31- float $ minScore = NULL
31+ ? float $ minScore = NULL
3232 )
3333 {
3434 $ this ->size = $ size ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ require_once __DIR__ . '/../../bootstrap.php';
99class Result extends \Tester \TestCase
1010{
1111
12- public function createTest () : void
12+ public function testCreate () : void
1313 {
1414 $ result = [
1515 'took ' => 37 ,
You can’t perform that action at this time.
0 commit comments