Skip to content

Commit

Permalink
Run Pint
Browse files Browse the repository at this point in the history
  • Loading branch information
Finn Paes committed Feb 14, 2024
1 parent 6b2a2ae commit 8524e88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Contracts/RetrievesStockSkus.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ interface RetrievesStockSkus
public function retrieveAll(): Enumerable;

/** @return Enumerable<int, string> */
public function retrieveUpdated(Carbon $from = null): Enumerable;
public function retrieveUpdated(?Carbon $from = null): Enumerable;
}
2 changes: 1 addition & 1 deletion src/Exceptions/UpdateException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class UpdateException extends Exception
{
public function __construct(string $sku, string $message, public array $payload = [], Throwable $previous = null)
public function __construct(string $sku, string $message, public array $payload = [], ?Throwable $previous = null)
{
parent::__construct("Failed to update $sku: $message", 0, $previous);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Retriever/DummySkuRetriever.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function retrieveAll(): Enumerable
return collect(['::sku_1::', '::sku_2::']);
}

public function retrieveUpdated(Carbon $from = null): Enumerable
public function retrieveUpdated(?Carbon $from = null): Enumerable
{
return collect(['::sku_1::']);
}
Expand Down

0 comments on commit 8524e88

Please sign in to comment.