Skip to content

Commit

Permalink
Fixed the methods typehints.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanbaidan committed Oct 2, 2024
1 parent 16ad8ae commit 4e48391
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Entity/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function addAsset(Asset $asset): self
return $this;
}

public function removeAsset(AssetSuperClass $asset): self
public function removeAsset(Asset $asset): self
{
if ($this->assets->contains($asset)) {
$this->assets->removeElement($asset);
Expand All @@ -170,7 +170,7 @@ public function addThreat(Threat $threat): self
return $this;
}

public function removeThreat(ThreatSuperClass $threat): self
public function removeThreat(Threat $threat): self
{
if ($this->threats->contains($threat)) {
$this->threats->removeElement($threat);
Expand All @@ -195,7 +195,7 @@ public function addVulnerability(Vulnerability $vulnerability): self
return $this;
}

public function removeVulnerability(VulnerabilitySuperClass $vulnerability): self
public function removeVulnerability(Vulnerability $vulnerability): self
{
if ($this->vulnerabilities->contains($vulnerability)) {
$this->vulnerabilities->removeElement($vulnerability);
Expand Down

0 comments on commit 4e48391

Please sign in to comment.