Skip to content

Commit

Permalink
Removed return type hints to ensure bc
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Jahn authored and ilario-pierbattista committed Mar 20, 2021
1 parent 5f4f136 commit ed06ea1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Quantifier/ForAll.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function disableShrinking()
* when(Antecedent $antecedent)
* @return self
*/
public function when(/* see docblock */): self
public function when(/* see docblock */)
{
$arguments = func_get_args();
if ($arguments[0] instanceof Antecedent) {
Expand All @@ -105,12 +105,12 @@ public function when(/* see docblock */): self
return $this;
}

public function and(): self
public function and()
{
return $this->when(...\func_get_args());
}

public function __invoke(callable $assertion): void
public function __invoke(callable $assertion)
{
$sizes = Size::withTriangleGrowth($this->maxSize)
->limit($this->iterations);
Expand Down Expand Up @@ -190,7 +190,7 @@ public function __invoke(callable $assertion): void
}
}

public function then(callable $assertion): void
public function then(callable $assertion)
{
$this->__invoke($assertion);
}
Expand Down

0 comments on commit ed06ea1

Please sign in to comment.