Skip to content

Commit

Permalink
Updated type hinting as the entity meta
Browse files Browse the repository at this point in the history
  • Loading branch information
shinde-rahul committed Jan 30, 2024
1 parent 74f74a6 commit 6c68b6d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions Entity/GoToProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function getDescription(): ?string
return $this->description;
}

public function setDescription(string $description): void
public function setDescription(?string $description): void
{
$this->description = $description;
}
Expand All @@ -142,7 +142,7 @@ public function setDate(\DateTime $date): void
$this->date = $date;
}

public function getAuthor(): string
public function getAuthor(): ?string
{
return $this->author;
}
Expand All @@ -152,12 +152,12 @@ public function setAuthor(?string $author): void
$this->author = $author;
}

public function getLanguage(): string
public function getLanguage(): ?string
{
return $this->language;
}

public function setLanguage(string $language): void
public function setLanguage(?string $language): void
{
$this->language = $language;
}
Expand All @@ -167,22 +167,22 @@ public function jsonSerialize()
return get_object_vars($this);
}

public function getDuration(): string
public function getDuration(): ?string
{
return $this->duration;
}

public function setDuration(string $duration): void
public function setDuration(?string $duration): void
{
$this->duration = $duration;
}

public function getStatus(): string
public function getStatus(): ?string
{
return $this->status;
}

public function setStatus(string $status): void
public function setStatus(?string $status): void
{
$this->status = $status;
}
Expand Down
2 changes: 1 addition & 1 deletion EventListener/LeadSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public function onListFiltering(LeadListFilteringEvent $event): void
if (!$isAnyEvent) {
$eventIds = [];
foreach ($eventNameFilter as $filter) {
$id = $this->model->getProductRepository()->findOneByProductKey($filter)->getId();
$id = $this->model->getProductRepository()->findOneByProductKey((string) $filter)->getId();
if ($id) {
$eventIds[] = $id;
}
Expand Down

0 comments on commit 6c68b6d

Please sign in to comment.