Skip to content

Commit 5c1c184

Browse files
committed
Session::getIterator() is deprecated
1 parent cd687d9 commit 5c1c184

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
@@ -307,11 +307,10 @@ public function hasSection(string $section): bool
307307
}
308308

309309

310-
/**
311-
* Iteration over all sections.
312-
*/
310+
/** @deprecated */
313311
public function getIterator(): \Iterator
314312
{
313+
trigger_error(__METHOD__ . '() is deprecated', E_USER_DEPRECATED);
315314
if ($this->exists() && !$this->started) {
316315
$this->autoStart(false);
317316
}

0 commit comments

Comments
 (0)