Fix return type of SessionHandler::read()

This commit is contained in:
Máté Kocsis 2021-04-20 01:07:56 +02:00
parent 8a7b786b7f
commit ffb1ff371c
No known key found for this signature in database
GPG key ID: FD055E41728BF310
2 changed files with 3 additions and 3 deletions

View file

@ -71,7 +71,7 @@ interface SessionHandlerInterface
/** @return bool */
public function close();
/** @return string */
/** @return string|false */
public function read(string $id);
/** @return bool */
@ -107,7 +107,7 @@ class SessionHandler implements SessionHandlerInterface, SessionIdInterface
/** @return bool */
public function close() {}
/** @return string */
/** @return string|false */
public function read(string $id) {}
/** @return bool */

View file

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 8175feea632f2832e43d830e70dc9332377b9f22 */
* Stub hash: 88f428841bc3e12b949a3308d60eae80d87e563a */
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")