From fe7d85134b3b4ae8dc66c8b2b1e6d05edf57b873 Mon Sep 17 00:00:00 2001 From: Ivan Stasiuk Date: Wed, 20 Oct 2021 20:54:27 +0300 Subject: [PATCH] fix: make it work on php 7 --- composer.json | 2 +- src/ResolveUriTrait.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 4ebafe8..e07937c 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ ], "minimum-stability": "stable", "require": { - "php": "^8.0", + "php": "^7.4|^8.0", "psr/http-message": "^1.0", "guzzlehttp/psr7": "^2" }, diff --git a/src/ResolveUriTrait.php b/src/ResolveUriTrait.php index 2955f22..23399fd 100644 --- a/src/ResolveUriTrait.php +++ b/src/ResolveUriTrait.php @@ -18,9 +18,11 @@ trait ResolveUriTrait { /** + * @param string|UriInterface $baseUri + * @param string|UriInterface $uri * @return UriInterface */ - public function resolveUriFor(string|UriInterface $baseUri, string|UriInterface $uri): UriInterface + public function resolveUriFor($baseUri, $uri): UriInterface { $base = Utils::uriFor($baseUri); $rel = Utils::uriFor($uri);