Skip to content

Commit

Permalink
DEV-593 - cs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKeilAgan committed Feb 21, 2024
1 parent 920ed71 commit b3ea9f6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/AkeneoApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ public function getCategories(string $rootCode): CategoryItem;
/**
* @throws AkeneoApiException
*/
public function triggerUpdate(string $identifier, string $message = null): void;
public function triggerUpdate(string $identifier, ?string $message = null): void;
}
2 changes: 1 addition & 1 deletion src/AkeneoApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class AkeneoApiException extends \Exception
{
protected function __construct(string $message = '', \Throwable $previous = null)
protected function __construct(string $message = '', ?\Throwable $previous = null)
{
parent::__construct($message, 0, $previous);
}
Expand Down
2 changes: 1 addition & 1 deletion src/CachedSymfonyHttpClientAkeneoApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function getCategories(string $rootCode): CategoryItem
return $item;
}

public function triggerUpdate(string $identifier, string $message = null): void
public function triggerUpdate(string $identifier, ?string $message = null): void
{
$this->decorated->triggerUpdate($identifier);
}
Expand Down
2 changes: 1 addition & 1 deletion src/SymfonyHttpClientAkeneoApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function getCategories(string $rootCode): CategoryItem
/**
* @throws AkeneoApiException
*/
public function triggerUpdate(string $identifier, string $message = null): void
public function triggerUpdate(string $identifier, ?string $message = null): void
{
$this->assertProductExists($identifier);

Expand Down

0 comments on commit b3ea9f6

Please sign in to comment.