Fix Session phpdoc (#4123)

* docs: fix phpdoc

* docs: delete unneeded space
This commit is contained in:
kenjis 2021-01-22 04:18:01 +09:00 committed by GitHub
parent deb5fc2070
commit a6b542a613
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -479,7 +479,7 @@ class Session implements SessionInterface
* to be set as session properties.
*
* @param string|array $data Property name or associative array of properties
* @param string|array $value Property value if single key provided
* @param mixed $value Property value if single key provided
*/
public function set($data, $value = null)
{
@ -514,8 +514,8 @@ class Session implements SessionInterface
*
* Replaces the legacy method $session->userdata();
*
* @param string $key Identifier of the session property to retrieve
* @return array|null The property value(s)
* @param string|null $key Identifier of the session property to retrieve
* @return mixed The property value(s)
*/
public function get(string $key = null)
{
@ -697,7 +697,7 @@ class Session implements SessionInterface
* If the item key is null, return all flashdata.
*
* @param string $key Property identifier
* @return array|null The requested property value, or an associative array of them
* @return array|null The requested property value, or an associative array of them
*/
public function getFlashdata(string $key = null)
{

View File

@ -42,7 +42,7 @@ interface SessionInterface
* to be set as session properties.
*
* @param string|array $data Property name or associative array of properties
* @param string|array $value Property value if single key provided
* @param mixed $value Property value if single key provided
*/
public function set($data, $value = null);
@ -59,7 +59,7 @@ interface SessionInterface
*
* @param string $key Identifier of the session property to retrieve
*
* @return array|null The property value(s)
* @return mixed The property value(s)
*/
public function get(string $key = null);