Skip to content

Commit

Permalink
Session: internal callback changed to private
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 16, 2020
1 parent 0f71ad2 commit ae82f9d
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 @@ -148,7 +148,7 @@ private function initialize(): void
}
}

register_shutdown_function([$this, 'clean']);
register_shutdown_function(\Closure::fromCallable([$this, 'clean']));
}


Expand Down Expand Up @@ -298,9 +298,8 @@ public function getIterator(): \Iterator

/**
* Cleans and minimizes meta structures. This method is called automatically on shutdown, do not call it directly.
* @internal
*/
public function clean(): void
private function clean(): void
{
if (!session_status() === PHP_SESSION_ACTIVE || empty($_SESSION)) {
return;
Expand Down

0 comments on commit ae82f9d

Please sign in to comment.