Skip to content

Commit

Permalink
pint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-rubel committed Mar 14, 2024
1 parent 91857c1 commit ef2548d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Collection/Complex/TaxNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TaxNumber extends ValueObject
* @param string $number
* @param string|null $prefix
*/
public function __construct(string $number, string $prefix = null)
public function __construct(string $number, ?string $prefix = null)
{
if (isset($this->number)) {
throw new InvalidArgumentException(static::IMMUTABLE_MESSAGE);
Expand Down
2 changes: 1 addition & 1 deletion src/Collection/Complex/Uuid.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Uuid extends ValueObject
* @param string $value
* @param string|null $name
*/
public function __construct(string $value, string $name = null)
public function __construct(string $value, ?string $name = null)
{
if (isset($this->value)) {
throw new InvalidArgumentException(static::IMMUTABLE_MESSAGE);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Complex/TaxNumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@

class TestTaxNumber extends TaxNumber
{
public function __construct(string $number, string $prefix = null)
public function __construct(string $number, ?string $prefix = null)
{
$this->number = $number;
$this->prefix = $prefix;
Expand Down

0 comments on commit ef2548d

Please sign in to comment.