diff --git a/UriTest.php b/UriTest.php index f09fed282..e529fd858 100644 --- a/UriTest.php +++ b/UriTest.php @@ -450,7 +450,7 @@ public function testItPreservesMultipleLeadingSlashesOnMutation(): void public function testItCanBeUpdatedWithAnUriComponent(): void { $uri = Uri::new('https://www.example.com/') - ->withPath(HierarchicalPath::fromAbsoluteSegments(['do', 'you', 'love', 'brahms'])); + ->withPath(HierarchicalPath::fromAbsolute('do', 'you', 'love', 'brahms')); self::assertSame('https://www.example.com/do/you/love/brahms', $uri->toString()); }