Skip to content

Commit 55632c7

Browse files
committed
Inprove Component normalize implementation
1 parent d1e953b commit 55632c7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Contracts/FragmentInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace League\Uri\Contracts;
1515

1616
/**
17-
* @method string|null normalized() returns the normalized string representation of the component
17+
* @method self normalize() returns the normalized string representation of the component
1818
*/
1919
interface FragmentInterface extends UriComponentInterface
2020
{

Contracts/PathInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use League\Uri\Exceptions\SyntaxError;
1717

1818
/**
19-
* @method string|null normalized() returns the normalized string representation of the component
19+
* @method static normalize() returns the normalized string representation of the component
2020
*/
2121
interface PathInterface extends UriComponentInterface
2222
{

Contracts/QueryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* @method bool hasPair(string $key, ?string $value) Tells whether the pair exists in the query.
2929
* @method ?string toFormData() Returns the string representation using the applicat/www-form-urlencoded rules
3030
* @method ?string toRFC3986() Returns the string representation using RFC3986 rules
31-
* @method ?string normalized() returns the normalized string representation of the component
31+
* @method self normalize() returns the normalized string representation of the component
3232
*/
3333
interface QueryInterface extends Countable, IteratorAggregate, UriComponentInterface
3434
{

0 commit comments

Comments
 (0)