Skip to content

Commit aec823c

Browse files
[6.x] Tweak cookie() and plainCookie() return types (#941)
* Fix return types * Update InteractsWithCookies.php Co-authored-by: Steve Bauman <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
1 parent 9689f78 commit aec823c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Concerns/InteractsWithCookies.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ trait InteractsWithCookies
1616
* @param string|null $value
1717
* @param int|DateTimeInterface|null $expiry
1818
* @param array $options
19-
* @return string
19+
* @return $this|string
2020
*/
2121
public function cookie($name, $value = null, $expiry = null, array $options = [])
2222
{
@@ -46,7 +46,7 @@ public function cookie($name, $value = null, $expiry = null, array $options = []
4646
* @param string|null $value
4747
* @param int|DateTimeInterface|null $expiry
4848
* @param array $options
49-
* @return string
49+
* @return $this|string
5050
*/
5151
public function plainCookie($name, $value = null, $expiry = null, array $options = [])
5252
{

0 commit comments

Comments
 (0)