Skip to content

Commit

Permalink
Fix typehints
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentBean committed Oct 2, 2024
1 parent 0c16cfa commit ddd3020
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Plugin/InsertNewProducts.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function __construct(
) {
}

public function afterInsertData(Product $subject, bool $result): bool
public function afterInsertData(Product $subject, ?bool $result): ?bool
{
$extensionEnabled = $this->config->getValue('akeneo_connector/justbetter/insertnewproducts', scope::SCOPE_WEBSITE);
if (!$extensionEnabled) {
Expand Down
2 changes: 1 addition & 1 deletion Plugin/SetTierPrices.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(
/**
* @throws Exception
*/
public function afterImportMedia(Product $subject, bool $result): bool
public function afterImportMedia(Product $subject, ?bool $result): ?bool
{
$extensionEnabled = $this->config->getValue('akeneo_connector/justbetter/tierprices', scope::SCOPE_WEBSITE);
if (!$extensionEnabled) {
Expand Down

0 comments on commit ddd3020

Please sign in to comment.