Skip to content

Commit c98690f

Browse files
committed
Apply fixes from pint 🍺
1 parent c91b3e9 commit c98690f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/Collection/Complex/TaxNumber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class TaxNumber extends ValueObject
4949
* @param string $number
5050
* @param string|null $prefix
5151
*/
52-
public function __construct(string $number, ?string $prefix = null)
52+
public function __construct(string $number, string $prefix = null)
5353
{
5454
if (isset($this->number)) {
5555
throw new InvalidArgumentException(static::IMMUTABLE_MESSAGE);

src/Collection/Complex/Uuid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Uuid extends ValueObject
4848
* @param string $value
4949
* @param string|null $name
5050
*/
51-
public function __construct(string $value, ?string $name = null)
51+
public function __construct(string $value, string $name = null)
5252
{
5353
if (isset($this->value)) {
5454
throw new InvalidArgumentException(static::IMMUTABLE_MESSAGE);

src/ValueObject.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*/
3333
abstract class ValueObject implements Arrayable, Immutable
3434
{
35-
use Macroable, Conditionable, HandlesCallbacks;
35+
use Conditionable, HandlesCallbacks, Macroable;
3636

3737
/**
3838
* Get the object value.
@@ -72,7 +72,7 @@ public static function from(mixed ...$values): static
7272
*
7373
* @return static|null
7474
*/
75-
public static function makeOrNull(mixed ...$values): static|null
75+
public static function makeOrNull(mixed ...$values): ?static
7676
{
7777
try {
7878
return static::make(...$values);

tests/Unit/Complex/TaxNumberTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190

191191
class TestTaxNumber extends TaxNumber
192192
{
193-
public function __construct(string $number, ?string $prefix = null)
193+
public function __construct(string $number, string $prefix = null)
194194
{
195195
$this->number = $number;
196196
$this->prefix = $prefix;

0 commit comments

Comments
 (0)