Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some PHP 8.1 fixes #1100

Merged
merged 1 commit into from
Dec 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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