From 59acdabfba1b6cdf1cad9368eb9be4165e7dd1de Mon Sep 17 00:00:00 2001 From: "Jan T. Sott" Date: Fri, 10 Jan 2025 00:30:54 +0100 Subject: [PATCH] replace deprecated createFromString method --- src/Manifest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Manifest.php b/src/Manifest.php index dcc7420..5943002 100644 --- a/src/Manifest.php +++ b/src/Manifest.php @@ -24,7 +24,7 @@ namespace Idleberg\ViteManifest; -use League\Uri\Http; +use League\Uri\Uri; use League\Uri\UriResolver; class Manifest @@ -203,8 +203,8 @@ private function calculateFileHash(string $file): string */ private function getPath(string $relativePath): string { - $baseUri = Http::createFromString($this->baseUri); - $relativeUri = Http::createFromString($relativePath); + $baseUri = Uri::new($this->baseUri); + $relativeUri = Uri::new($relativePath); return UriResolver::resolve($relativeUri, $baseUri); }