Skip to content

Commit 6fb08f4

Browse files
committed
Fix return type of SessionHandler::gc()
Relates to GH-7006
1 parent b165197 commit 6fb08f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/session/session.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function write(string $id, string $data);
8080
/** @return bool */
8181
public function destroy(string $id);
8282

83-
/** @return int|bool */
83+
/** @return int|false */
8484
public function gc(int $max_lifetime);
8585
}
8686

@@ -116,7 +116,7 @@ public function write(string $id, string $data) {}
116116
/** @return bool */
117117
public function destroy(string $id) {}
118118

119-
/** @return int|bool */
119+
/** @return int|false */
120120
public function gc(int $max_lifetime) {}
121121

122122
/** @return string */

ext/session/session_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 88f428841bc3e12b949a3308d60eae80d87e563a */
2+
* Stub hash: 4221e895bdb0c3e903b7688f79e2863fc0788cee */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_name, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
55
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, name, IS_STRING, 1, "null")

0 commit comments

Comments
 (0)