summaryrefslogtreecommitdiff
path: root/www/wiki/vendor/elasticsearch/elasticsearch/phpstan-tests.neon
blob: 772be8e1cb4f2ada0ae67cfd0b2ca272b26c73d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
parameters:
    ignoreErrors:
        - '#Mockery\\MockInterface::shouldReceive\(\)#'
        - '#Mockery\\MockInterface given#'

        # because of \Elasticsearch\Tests\RegisteredNamespaceTest
        - '#Call to an undefined method Elasticsearch\\Client::foo\(\)#'
        - '#Call to an undefined method Elasticsearch\\Client::bar\(\)#'

        # because of \Elasticsearch\Tests\ClientBuilderTest
        - '#expects Psr\\Log\\LoggerInterface, Elasticsearch\\Tests\\ClientBuilder\\DummyLogger given.$#'

        # probably PHPStan issue, because it actually works https://3v4l.org/s3U2B
        - '#Argument of an invalid type array\|stdClass supplied for foreach, only iterables are supported#'