Skip to content

Commit

Permalink
Session::getIterator() is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Nov 30, 2022
1 parent 63830a1 commit 6e749c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Http/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,10 @@ public function hasSection(string $section): bool
}


/**
* Iteration over all sections.
*/
/** @deprecated */
public function getIterator(): \Iterator
{
trigger_error(__METHOD__ . '() is deprecated', E_USER_DEPRECATED);
if ($this->exists() && !$this->started) {
$this->autoStart(false);
}
Expand Down

0 comments on commit 6e749c0

Please sign in to comment.