Skip to content

Commit

Permalink
Silent return type notices under PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dynamicnet committed Feb 25, 2023
1 parent 9fdd327 commit 68659e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Net/Gearman/Set.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ public function attachCallback($callback)
*
* @return ArrayIterator Tasks
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new ArrayIterator($this->tasks);
Expand All @@ -205,6 +206,7 @@ public function getIterator()
* @return int Number of tasks in the set
* @see {@link Countable::count()}
*/
#[\ReturnTypeWillChange]
public function count()
{
return $this->tasksCount;
Expand Down

0 comments on commit 68659e9

Please sign in to comment.