Skip to content

Throwable is available starting with 7.0 PHP version #142

Closed
@kampalex

Description

@kampalex

Issue Summary

According to composer.json, this library supports PHP version 5.6 and greater.

During review, my IDE warned that Throwable is used in file InvalidRequest. This interface is available since PHP 7.0.

Solution: bump PHP version requirement to '>=7.x' or replace Throwable using Exception.

Technical details:

  • php-http-client version: current master (according to composer.lock of other project: 3.10.6 / 2020-04-29T19:42:26+00:00)
  • php version: 7.1 (compatible version for configured phpunit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugbug in the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions