-
Notifications
You must be signed in to change notification settings - Fork 838
WIP: Add Uri extension documentation #5060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Add comprehensive documentation for the new Uri extension, which implements RFC 3986 and WHATWG URL Standard specifications. Includes: - Uri\Rfc3986\Uri class with RFC 3986 compliant URI parsing and manipulation - Uri\UriComparisonMode enum for flexible URI comparison options - Complete method reference for all Uri\Rfc3986\Uri getters, setters, and utility methods - Version information indicating availability in PHP 8.5.0+
Add documentation for three new Uri exception/error classes: - Uri\UriError: Base error class for URI operations - Uri\UriException: Base exception class for URI operations - Uri\InvalidUriException: Exception for invalid URI instances These classes provide structured error handling for the Uri extension.
Add comprehensive documentation for the Uri\WhatWg\Url class which implements the WHATWG URL Standard. This includes documentation for: - Constructor and static parse/resolve methods - Getter methods for URL components (scheme, host, port, path, query, fragment, username, password) - Host accessors supporting both ASCII and Unicode representations - Mutator methods (with*) for creating modified URL instances - Serialization methods (toAsciiString, toUnicodeString) - URL comparison via equals() method - Debug and serialization support (__debugInfo, __serialize, __unserialize) Also remove final and readonly modifiers from Uri\Rfc3986\Uri constructor to allow proper inheritance by the WHATWG implementation.
Add documentation for the Uri\WhatWg\UrlValidationErrorType enum with all validation error types. Add class synopsis sections to Uri\Rfc3986\Uri and Uri\WhatWg\Url documentation. Update method descriptions for with* methods across both RFC3986 and WHATWG implementations to use more precise language: "Return this instance with the [component] updated to the given value" instead of "Return a new [instance/URI] instance with a different [component]".
| <methodparam choice="opt"> | ||
| <type>string</type> | ||
| <parameter>baseUrl</parameter> | ||
| <initializer>NULL</initializer> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please run ./build/gen_stub.php --replace-classsynopses --replace-methodsynopses . ../doc-en/reference/uri from php-src, standing on the PHP-8.5 branch, and in the same directory level as doc-en? This will make sure that the class and method signatures are correct. For example, uppercase NULL is never used, and null is generated instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I knew earlier.. Thanks!
Add comprehensive documentation for the new Uri extension, which implements RFC 3986 and WHATWG URL Standard specifications.
Includes:
This is a Work In Progress.