Skip to content

Commit

Permalink
Merge pull request #184 from matthi4s/master
Browse files Browse the repository at this point in the history
Set return types for ArrayAccess functions
  • Loading branch information
freekmurze authored Jun 21, 2022
2 parents 70f1174 + 1a04501 commit 7427087
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Pool.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,24 +234,24 @@ public function markAsFailed(Runnable $process)
$this->failed[$process->getPid()] = $process;
}

public function offsetExists($offset)
public function offsetExists($offset): bool
{
// TODO

return false;
}

public function offsetGet($offset)
public function offsetGet($offset): Runnable
{
// TODO
}

public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
$this->add($value);
}

public function offsetUnset($offset)
public function offsetUnset($offset): void
{
// TODO
}
Expand Down

0 comments on commit 7427087

Please sign in to comment.