From 6fb08f46077ea8cad9788eaa86ddf3bc4dbe358c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Thu, 27 May 2021 23:07:27 +0200 Subject: [PATCH] Fix return type of SessionHandler::gc() Relates to GH-7006 --- ext/session/session.stub.php | 4 ++-- ext/session/session_arginfo.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/session/session.stub.php b/ext/session/session.stub.php index a824d6b3679..0300fec6566 100644 --- a/ext/session/session.stub.php +++ b/ext/session/session.stub.php @@ -80,7 +80,7 @@ interface SessionHandlerInterface /** @return bool */ public function destroy(string $id); - /** @return int|bool */ + /** @return int|false */ public function gc(int $max_lifetime); } @@ -116,7 +116,7 @@ class SessionHandler implements SessionHandlerInterface, SessionIdInterface /** @return bool */ public function destroy(string $id) {} - /** @return int|bool */ + /** @return int|false */ public function gc(int $max_lifetime) {} /** @return string */ diff --git a/ext/session/session_arginfo.h b/ext/session/session_arginfo.h index 5f1c905f60f..db5e56602e7 100644 --- a/ext/session/session_arginfo.h +++ b/ext/session/session_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 88f428841bc3e12b949a3308d60eae80d87e563a */ + * Stub hash: 4221e895bdb0c3e903b7688f79e2863fc0788cee */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_name, 0, 0, MAY_BE_STRING|MAY_BE_FALSE) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, name, IS_STRING, 1, "null")