Skip to content

Commit

Permalink
Add some PHP 8.1 fixes (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Dec 2, 2021
1 parent 393e0a9 commit 04c1b1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/JobPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public function displayName()
* @param string $offset
* @return bool
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return array_key_exists($offset, $this->decoded);
}
Expand All @@ -181,6 +181,7 @@ public function offsetExists($offset)
* @param string $offset
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->decoded[$offset];
Expand All @@ -193,7 +194,7 @@ public function offsetGet($offset)
* @param mixed $value
* @return void
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
$this->decoded[$offset] = $value;
}
Expand All @@ -204,7 +205,7 @@ public function offsetSet($offset, $value)
* @param string $offset
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->decoded[$offset]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ProcessPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public function queue()
*
* @return int
*/
public function count()
public function count(): int
{
return count($this->processes);
}
Expand Down

0 comments on commit 04c1b1b

Please sign in to comment.