Skip to content

Commit f2e68a4

Browse files
committed
Fix documentation examples
1 parent a4a09ee commit f2e68a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/uri/7.0/rfc3986.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,9 @@ use League\Uri\Uri;
535535
use League\Uri\UriComparisonMode;
536536

537537
$uri = Uri::new('example://a/b/c/%7Bfoo%7D?foo=bar');
538-
$uri->isSameDocument('eXAMPLE://a/./b/../b/%63/%7bfoo%7d'); // returns true
539-
$uri->equals('eXAMPLE://a/./b/../b/%63/%7bfoo%7d'); // returns true
540-
$uri->equals('eXAMPLE://a/./b/../b/%63/%7bfoo%7d', comparisonMode: UriComparisonMode::IncludeFragment); // returns false
538+
$uri->isSameDocument('eXAMPLE://a/./b/../b/%63/%7bfoo%7d?foo=bar'); // returns true
539+
$uri->equals('eXAMPLE://a/./b/../b/%63/%7bfoo%7d?foo=bar'); // returns true
540+
$uri->equals('eXAMPLE://a/./b/../b/%63/%7bfoo%7d?foo=bar#fragment', uriComparisonMode: UriComparisonMode::IncludeFragment); // returns false
541541
```
542542

543543
In the last example the `equals` method took into account the URI `fragment` component. The `isSameDocument`

0 commit comments

Comments
 (0)