Skip to content

Commit

Permalink
replace deprecated createFromString method
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Jan 9, 2025
1 parent 928b778 commit 59acdab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

namespace Idleberg\ViteManifest;

use League\Uri\Http;
use League\Uri\Uri;
use League\Uri\UriResolver;

class Manifest
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 59acdab

Please sign in to comment.