Skip to content

Commit f57b12a

Browse files
committed
Replacing return type with @return docblock
1 parent b6110c0 commit f57b12a

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

system/Session/Session.php

+18-18
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public function start()
268268
* Destroys the current session.
269269
*
270270
* @deprecated Use destroy() instead.
271-
*
271+
*
272272
* @return void
273273
*/
274274
public function stop()
@@ -280,7 +280,7 @@ public function stop()
280280
* Configuration.
281281
*
282282
* Handle input binds and configuration defaults.
283-
*
283+
*
284284
* @return void
285285
*/
286286
protected function configure()
@@ -323,7 +323,7 @@ protected function configure()
323323
*
324324
* To make life easier, we force the PHP defaults. Because PHP9 forces them.
325325
* See https://wiki.php.net/rfc/deprecations_php_8_4#sessionsid_length_and_sessionsid_bits_per_character
326-
*
326+
*
327327
* @return void
328328
*/
329329
protected function configureSidLength()
@@ -349,7 +349,7 @@ protected function configureSidLength()
349349
*
350350
* Clears old "flash" data, marks the new one for deletion and handles
351351
* "temp" data deletion.
352-
*
352+
*
353353
* @return void
354354
*/
355355
protected function initVars()
@@ -379,7 +379,7 @@ protected function initVars()
379379
* Regenerates the session ID.
380380
*
381381
* @param bool $destroy Should old session data be destroyed?
382-
*
382+
*
383383
* @return void
384384
*/
385385
public function regenerate(bool $destroy = false)
@@ -412,7 +412,7 @@ private function removeOldSessionCookie(): void
412412

413413
/**
414414
* Destroys the current session.
415-
*
415+
*
416416
* @return void
417417
*/
418418
public function destroy()
@@ -449,7 +449,7 @@ public function close()
449449
*
450450
* @param array|string $data Property name or associative array of properties
451451
* @param array|bool|float|int|object|string|null $value Property value if single key provided
452-
*
452+
*
453453
* @return void
454454
*/
455455
public function set($data, $value = null)
@@ -525,7 +525,7 @@ public function has(string $key): bool
525525
*
526526
* @param string $key Identifier of the session property we are interested in.
527527
* @param array $data value to be pushed to existing session key.
528-
*
528+
*
529529
* @return void
530530
*/
531531
public function push(string $key, array $data)
@@ -543,7 +543,7 @@ public function push(string $key, array $data)
543543
* of a specific session property to remove.
544544
*
545545
* @param array|string $key Identifier of the session property or properties to remove.
546-
*
546+
*
547547
* @return void
548548
*/
549549
public function remove($key)
@@ -617,7 +617,7 @@ public function __isset(string $key): bool
617617
*
618618
* @param array|string $data Property identifier or associative array of properties
619619
* @param array|bool|float|int|object|string|null $value Property value if $data is a scalar
620-
*
620+
*
621621
* @return void
622622
*/
623623
public function setFlashdata($data, $value = null)
@@ -659,7 +659,7 @@ public function getFlashdata(?string $key = null)
659659
* Keeps a single piece of flash data alive for one more request.
660660
*
661661
* @param array|string $key Property identifier or array of them
662-
*
662+
*
663663
* @return void
664664
*/
665665
public function keepFlashdata($key)
@@ -703,7 +703,7 @@ public function markAsFlashdata($key): bool
703703
* Unmark data in the session as flashdata.
704704
*
705705
* @param array|string $key Property identifier or array of them
706-
*
706+
*
707707
* @return void
708708
*/
709709
public function unmarkFlashdata($key)
@@ -756,7 +756,7 @@ public function getFlashKeys(): array
756756
* @param array|string $data Session data key or associative array of items
757757
* @param array|bool|float|int|object|string|null $value Value to store
758758
* @param int $ttl Time-to-live in seconds
759-
*
759+
*
760760
* @return void
761761
*/
762762
public function setTempdata($data, $value = null, int $ttl = 300)
@@ -797,7 +797,7 @@ public function getTempdata(?string $key = null)
797797
* Removes a single piece of temporary data from the session.
798798
*
799799
* @param string $key Session data key
800-
*
800+
*
801801
* @return void
802802
*/
803803
public function removeTempdata(string $key)
@@ -859,7 +859,7 @@ public function markAsTempdata($key, int $ttl = 300): bool
859859
* lifespan and allowing it to live as long as the session does.
860860
*
861861
* @param array|string $key Property identifier or array of them
862-
*
862+
*
863863
* @return void
864864
*/
865865
public function unmarkTempdata($key)
@@ -906,7 +906,7 @@ public function getTempKeys(): array
906906
/**
907907
* Sets the driver as the session handler in PHP.
908908
* Extracted for easier testing.
909-
*
909+
*
910910
* @return void
911911
*/
912912
protected function setSaveHandler()
@@ -917,7 +917,7 @@ protected function setSaveHandler()
917917
/**
918918
* Starts the session.
919919
* Extracted for testing reasons.
920-
*
920+
*
921921
* @return void
922922
*/
923923
protected function startSession()
@@ -935,7 +935,7 @@ protected function startSession()
935935
* Takes care of setting the cookie on the client side.
936936
*
937937
* @codeCoverageIgnore
938-
*
938+
*
939939
* @return void
940940
*/
941941
protected function setCookie()

system/Test/Mock/MockSession.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class MockSession extends Session
3737
/**
3838
* Sets the driver as the session handler in PHP.
3939
* Extracted for easier testing.
40-
*
40+
*
4141
* @return void
4242
*/
4343
protected function setSaveHandler()
@@ -48,7 +48,7 @@ protected function setSaveHandler()
4848
/**
4949
* Starts the session.
5050
* Extracted for testing reasons.
51-
*
51+
*
5252
* @return void
5353
*/
5454
protected function startSession()
@@ -60,7 +60,7 @@ protected function startSession()
6060
/**
6161
* Takes care of setting the cookie on the client side.
6262
* Extracted for testing reasons.
63-
*
63+
*
6464
* @return void
6565
*/
6666
protected function setCookie()
@@ -73,7 +73,7 @@ protected function setCookie()
7373

7474
/**
7575
* Regenerates the session ID.
76-
*
76+
*
7777
* @return void
7878
*/
7979
public function regenerate(bool $destroy = false)

0 commit comments

Comments
 (0)