Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Aug 31, 2022
1 parent e5dce23 commit 1e195f2
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 7 deletions.
5 changes: 4 additions & 1 deletion src/Psalm/Storage/Assertion.php
Expand Up @@ -32,7 +32,10 @@ public function getAtomicType(): ?Atomic
return null;
}

public function setAtomicType(Atomic $type): static
/**
* @return static
*/
public function setAtomicType(Atomic $type): self
{
return $this;
}
Expand Down
5 changes: 4 additions & 1 deletion src/Psalm/Storage/Assertion/IsIdentical.php
Expand Up @@ -37,7 +37,10 @@ public function getAtomicType(): ?Atomic
return $this->type;
}

public function setAtomicType(Atomic $type): static
/**
* @return static
*/
public function setAtomicType(Atomic $type): self
{
return new static($type);
}
Expand Down
5 changes: 4 additions & 1 deletion src/Psalm/Storage/Assertion/IsLooselyEqual.php
Expand Up @@ -37,7 +37,10 @@ public function hasEquality(): bool
return true;
}

public function setAtomicType(Atomic $type): static
/**
* @return static
*/
public function setAtomicType(Atomic $type): self
{
return new static($type);
}
Expand Down
5 changes: 4 additions & 1 deletion src/Psalm/Storage/Assertion/IsNotIdentical.php
Expand Up @@ -42,7 +42,10 @@ public function getAtomicType(): ?Atomic
return $this->type;
}

public function setAtomicType(Atomic $type): static
/**
* @return static
*/
public function setAtomicType(Atomic $type): self
{
return new static($type);
}
Expand Down
5 changes: 4 additions & 1 deletion src/Psalm/Storage/Assertion/IsNotLooselyEqual.php
Expand Up @@ -42,7 +42,10 @@ public function getAtomicType(): ?Atomic
return $this->type;
}

public function setAtomicType(Atomic $type): static
/**
* @return static
*/
public function setAtomicType(Atomic $type): self
{
return new static($type);
}
Expand Down
5 changes: 4 additions & 1 deletion src/Psalm/Storage/Assertion/IsNotType.php
Expand Up @@ -37,7 +37,10 @@ public function getAtomicType(): ?Atomic
return $this->type;
}

public function setAtomicType(Atomic $type): static
/**
* @return static
*/
public function setAtomicType(Atomic $type): self
{
return new static($type);
}
Expand Down
5 changes: 4 additions & 1 deletion src/Psalm/Storage/Assertion/IsType.php
Expand Up @@ -32,7 +32,10 @@ public function getAtomicType(): ?Atomic
return $this->type;
}

public function setAtomicType(Atomic $type): static
/**
* @return static
*/
public function setAtomicType(Atomic $type): self
{
return new static($type);
}
Expand Down

0 comments on commit 1e195f2

Please sign in to comment.