Skip to content

Commit 85d541a

Browse files
committed
Session::getIterator() is deprecated
1 parent 68a877b commit 85d541a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Http/Session.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,10 @@ public function hasSection(string $section): bool
318318
}
319319

320320

321-
/**
322-
* Iteration over all sections.
323-
*/
321+
/** @deprecated */
324322
public function getIterator(): \Iterator
325323
{
324+
trigger_error(__METHOD__ . '() is deprecated', E_USER_DEPRECATED);
326325
if ($this->exists() && !$this->started) {
327326
$this->autoStart(false);
328327
}

0 commit comments

Comments
 (0)