Skip to content

PSR http message version conflict #724

@NicolasPineau

Description

@NicolasPineau
  • Algolia Client Version: 3.4.0, 3.4.1

Description

composer./json states that either versions 1 or 2 of psr http-message are compliant :

"psr/http-message": "^1.0 || ^2.0",

In class Algolia\AlgoliaSearch\Http\Psr7\Uri the method withScheme has the following signature :

public function withScheme(string $scheme): UriInterface

which is not correct implementation of version 1 of psr/http-message related interface:

public function withScheme(string $scheme);

Experienced by using "drupal/search_api_algolia": "^3.0@beta", had to downgrade algolia/algoliasearch-client-php to 3.3.2 fo fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions