File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -535,9 +535,9 @@ use League\Uri\Uri;
535535use 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
543543In the last example the ` equals ` method took into account the URI ` fragment ` component. The ` isSameDocument `
You can’t perform that action at this time.
0 commit comments