Skip to content

Commit

Permalink
Merge pull request #53 from dynamicnet/suppress-php82-notices
Browse files Browse the repository at this point in the history
Silent return type notices under PHP 8.1
  • Loading branch information
brianlmoon authored Feb 9, 2024
2 parents 9fdd327 + 68659e9 commit eeeb70f
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 eeeb70f

Please sign in to comment.