Fix phpdoc return types

This commit is contained in:
Clemens Schwaighofer
2024-12-23 11:26:50 +09:00
parent d1e65c702e
commit 8d0036eaac
3 changed files with 7 additions and 7 deletions

View File

@@ -363,7 +363,7 @@ class Session
* set the auto write close flag
*
* @param bool $flag
* @return void
* @return Session
*/
public function setAutoWriteClose(bool $flag): Session
{
@@ -514,7 +514,7 @@ class Session
*
* @param string $name array name in _SESSION
* @param mixed $value value to set (can be anything)
* @return void
* @return Session
*/
public function set(string $name, mixed $value): Session
{
@@ -579,12 +579,12 @@ class Session
* unset one _SESSION entry 'name' if exists
*
* @param string $name _SESSION key name to remove
* @return void
* @return Session
*/
public function unset(string $name): Session
{
if (!isset($_SESSION[$name])) {
return;
return $this;
}
$this->restartSession();
unset($_SESSION[$name]);