Skip to content

Commit 88474b6

Browse files
committed
docs: fix @param and @return
1 parent 1423c71 commit 88474b6

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

system/Session/Session.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public function __construct(SessionHandlerInterface $driver, App $config)
197197
/**
198198
* Initialize the session container and starts up the session.
199199
*
200-
* @return mixed
200+
* @return $this|void
201201
*/
202202
public function start()
203203
{
@@ -450,8 +450,8 @@ public function destroy()
450450
* If $data is an array, it is expected to be an array of key/value pairs
451451
* to be set as session properties.
452452
*
453-
* @param array|string $data Property name or associative array of properties
454-
* @param mixed $value Property value if single key provided
453+
* @param array|string $data Property name or associative array of properties
454+
* @param array|bool|float|int|object|string|null $value Property value if single key provided
455455
*/
456456
public function set($data, $value = null)
457457
{
@@ -612,8 +612,8 @@ public function __isset(string $key): bool
612612
* Otherwise, it is interpreted as the identifier of a specific
613613
* flashdata property, with $value containing the property value.
614614
*
615-
* @param array|string $data Property identifier or associative array of properties
616-
* @param array|string $value Property value if $data is a scalar
615+
* @param array|string $data Property identifier or associative array of properties
616+
* @param array|bool|float|int|object|string|null $value Property value if $data is a scalar
617617
*/
618618
public function setFlashdata($data, $value = null)
619619
{
@@ -695,7 +695,7 @@ public function markAsFlashdata($key): bool
695695
/**
696696
* Unmark data in the session as flashdata.
697697
*
698-
* @param mixed $key Property identifier or array of them
698+
* @param array|string $key Property identifier or array of them
699699
*/
700700
public function unmarkFlashdata($key)
701701
{
@@ -744,9 +744,9 @@ public function getFlashKeys(): array
744744
* Sets new data into the session, and marks it as temporary data
745745
* with a set lifespan.
746746
*
747-
* @param array|string $data Session data key or associative array of items
748-
* @param null $value Value to store
749-
* @param int $ttl Time-to-live in seconds
747+
* @param array|string $data Session data key or associative array of items
748+
* @param array|bool|float|int|object|string|null $value Value to store
749+
* @param int $ttl Time-to-live in seconds
750750
*/
751751
public function setTempdata($data, $value = null, int $ttl = 300)
752752
{
@@ -760,7 +760,7 @@ public function setTempdata($data, $value = null, int $ttl = 300)
760760
*
761761
* @param string $key Session data key
762762
*
763-
* @return mixed Session data value or null if not found.
763+
* @return array|bool|float|int|object|string|null Session data value or null if not found.
764764
*/
765765
public function getTempdata(?string $key = null)
766766
{

0 commit comments

Comments
 (0)