Skip to content

Commit ae82f9d

Browse files
committed
Session: internal callback changed to private
1 parent 0f71ad2 commit ae82f9d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Http/Session.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private function initialize(): void
148148
}
149149
}
150150

151-
register_shutdown_function([$this, 'clean']);
151+
register_shutdown_function(\Closure::fromCallable([$this, 'clean']));
152152
}
153153

154154

@@ -298,9 +298,8 @@ public function getIterator(): \Iterator
298298

299299
/**
300300
* Cleans and minimizes meta structures. This method is called automatically on shutdown, do not call it directly.
301-
* @internal
302301
*/
303-
public function clean(): void
302+
private function clean(): void
304303
{
305304
if (!session_status() === PHP_SESSION_ACTIVE || empty($_SESSION)) {
306305
return;

0 commit comments

Comments
 (0)