Skip to content

Commit

Permalink
fix: fix getIterator() deprecations (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
deguif authored Dec 14, 2023
1 parent 1ba007c commit 3056270
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Grid/GridManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct($container, Environment $twig)
$this->grids = new SplObjectStorage();
}

public function getIterator()
public function getIterator(): \Traversable
{
return $this->grids;
}
Expand Down Expand Up @@ -212,7 +212,7 @@ public function getGridManagerResponse($param1 = null, $param2 = null, Response

$response->setContent($content);

return $response;
return $response;
}
}

Expand Down
2 changes: 1 addition & 1 deletion Grid/Rows.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct(array $rows = [])
*
* @see IteratorAggregate::getIterator()
*/
public function getIterator():\Traversable
public function getIterator(): \Traversable
{
return $this->rows;
}
Expand Down

0 comments on commit 3056270

Please sign in to comment.