Skip to content

Commit

Permalink
apply code style
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck committed Feb 5, 2024
1 parent 6ec71c5 commit 1ebc5dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PackageUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public function __toString(): string
*
* @psalm-suppress MissingThrowsDocblock since DomainExceptions are impossible due to internal assertions.
*/
public function toString(PackageUrlBuilder $builder = null): string
public function toString(?PackageUrlBuilder $builder = null): string
{
$builder = $builder ?? new PackageUrlBuilder();

Expand All @@ -336,7 +336,7 @@ public function toString(PackageUrlBuilder $builder = null): string
*
* @psalm-return static|null null when empty string is passed
*/
public static function fromString(string $data, PackageUrlParser $parser = null): ?self
public static function fromString(string $data, ?PackageUrlParser $parser = null): ?self
{
if ('' === $data) {
return null;
Expand Down

0 comments on commit 1ebc5dd

Please sign in to comment.