File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff line change 3232 */
3333abstract 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 );
Original file line number Diff line number Diff line change 190190
191191class 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 ;
You can’t perform that action at this time.
0 commit comments