Skip to content

Commit ffb1ff3

Browse files
committed
Fix return type of SessionHandler::read()
1 parent 8a7b786 commit ffb1ff3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/session/session.stub.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function open(string $path, string $name);
7171
/** @return bool */
7272
public function close();
7373

74-
/** @return string */
74+
/** @return string|false */
7575
public function read(string $id);
7676

7777
/** @return bool */
@@ -107,7 +107,7 @@ public function open(string $path, string $name) {}
107107
/** @return bool */
108108
public function close() {}
109109

110-
/** @return string */
110+
/** @return string|false */
111111
public function read(string $id) {}
112112

113113
/** @return bool */

ext/session/session_arginfo.h

+1-1
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: 8175feea632f2832e43d830e70dc9332377b9f22 */
2+
* Stub hash: 88f428841bc3e12b949a3308d60eae80d87e563a */
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)