algolia / algoliasearch-client-php

⚡️ A fully-featured and blazing-fast PHP API client to interact with Algolia.
https://www.algolia.com/doc/api-client/php/getting-started/
MIT License
671 stars 116 forks source link

Deprecations emitted by symfony/error-handler when loading Algolia classes #701

Closed greg0ire closed 2 years ago

greg0ire commented 2 years ago

Description

Running my test suite results in a lot of deprecations from Symfony, when loading Algolia classes:

  1x: Method "Psr\Http\Message\UriInterface::getScheme()" might add "string" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\UriInterface::getAuthority()" might add "string" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\UriInterface::getUserInfo()" might add "string" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\UriInterface::getHost()" might add "string" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\UriInterface::getPort()" might add "?int" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\UriInterface::getPath()" might add "string" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\UriInterface::getQuery()" might add "string" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\UriInterface::getFragment()" might add "string" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\UriInterface::withScheme()" might add "static" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\UriInterface::withUserInfo()" might add "static" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\UriInterface::withHost()" might add "static" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\UriInterface::withPort()" might add "static" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\UriInterface::withPath()" might add "static" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\UriInterface::withQuery()" might add "static" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\UriInterface::withFragment()" might add "static" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\RequestInterface::getRequestTarget()" might add "string" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\RequestInterface::withRequestTarget()" might add "static" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\RequestInterface::getMethod()" might add "string" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\RequestInterface::withMethod()" might add "static" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\RequestInterface::getUri()" might add "UriInterface" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\RequestInterface::withUri()" might add "static" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\MessageInterface::getProtocolVersion()" might add "string" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\MessageInterface::withProtocolVersion()" might add "static" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\MessageInterface::getHeaders()" might add "array" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\MessageInterface::hasHeader()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\MessageInterface::getHeader()" might add "array" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\MessageInterface::getHeaderLine()" might add "string" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\MessageInterface::withHeader()" might add "static" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\MessageInterface::withAddedHeader()" might add "static" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\MessageInterface::withoutHeader()" might add "static" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\MessageInterface::getBody()" might add "StreamInterface" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\MessageInterface::withBody()" might add "static" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Request" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\StreamInterface::getContents()" might add "string" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Stream" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\StreamInterface::close()" might add "void" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Stream" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\StreamInterface::getSize()" might add "?int" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Stream" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\StreamInterface::isReadable()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Stream" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\StreamInterface::isWritable()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Stream" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\StreamInterface::isSeekable()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Stream" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\StreamInterface::eof()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Stream" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\StreamInterface::tell()" might add "int" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Stream" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\StreamInterface::read()" might add "string" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Stream" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\StreamInterface::write()" might add "int" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Stream" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Psr\Http\Message\StreamInterface::getMetadata()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Http\Psr7\Stream" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Iterator::current()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Response\BatchIndexingResponse" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Iterator::next()" might add "void" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Response\BatchIndexingResponse" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Iterator::key()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Response\BatchIndexingResponse" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Iterator::valid()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Response\BatchIndexingResponse" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Iterator::rewind()" might add "void" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Response\BatchIndexingResponse" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Iterator::next()" might add "void" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Iterators\AbstractAlgoliaIterator" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Iterator::rewind()" might add "void" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Iterators\AbstractAlgoliaIterator" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AlgoliaGetAllModelsTest::testItGetsAllModelsFromTheIncludedFamilies from App\Tests\Integration\Algolia

  1x: Method "Countable::count()" might add "int" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Response\MultiResponse" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in ImportQueryRulesTest::testItImportsQueryRules from App\Tests\QueryRulesImport\Application

  1x: Method "Iterator::current()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Response\MultiResponse" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in ImportQueryRulesTest::testItImportsQueryRules from App\Tests\QueryRulesImport\Application

  1x: Method "Iterator::next()" might add "void" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Response\MultiResponse" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in ImportQueryRulesTest::testItImportsQueryRules from App\Tests\QueryRulesImport\Application

  1x: Method "Iterator::key()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Response\MultiResponse" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in ImportQueryRulesTest::testItImportsQueryRules from App\Tests\QueryRulesImport\Application

  1x: Method "Iterator::valid()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Response\MultiResponse" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in ImportQueryRulesTest::testItImportsQueryRules from App\Tests\QueryRulesImport\Application

  1x: Method "Iterator::rewind()" might add "void" as a native return type declaration in the future. Do the same in implementation "Algolia\AlgoliaSearch\Response\MultiResponse" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in ImportQueryRulesTest::testItImportsQueryRules from App\Tests\QueryRulesImport\Application

The messages say how this can be avoided.

Steps To Reproduce

Write functional tests involving Algolia;setup symfony/error-handler in your project.