Skip to content

Commit eeeb70f

Browse files
authored
Merge pull request #53 from dynamicnet/suppress-php82-notices
Silent return type notices under PHP 8.1
2 parents 9fdd327 + 68659e9 commit eeeb70f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Net/Gearman/Set.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ public function attachCallback($callback)
194194
*
195195
* @return ArrayIterator Tasks
196196
*/
197+
#[\ReturnTypeWillChange]
197198
public function getIterator()
198199
{
199200
return new ArrayIterator($this->tasks);
@@ -205,6 +206,7 @@ public function getIterator()
205206
* @return int Number of tasks in the set
206207
* @see {@link Countable::count()}
207208
*/
209+
#[\ReturnTypeWillChange]
208210
public function count()
209211
{
210212
return $this->tasksCount;

0 commit comments

Comments
 (0)