Skip to content
Browse files

Don't use mixed

Be more explicit with the possible types we generally expect.
  • Loading branch information...
markstory committed Nov 12, 2016
1 parent 979a498 commit fd98169daf6c8a1f32e6615639ec9a3744145247
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Http/ServerRequest.php
@@ -1405,7 +1405,7 @@ public function query($name = null)
* @param string $name The name or dotted path to the query param.
* @param mixed $default The default value if the named parameter is not set.
* @return mixed Query data.
* @return null|string|array Query data.
public function getQuery($name, $default = null)
@@ -1473,7 +1473,7 @@ public function data($name = null, ...$args)
* @param string|null $name Dot separated name of the value to read. Or null to read all data.
* @param mixed $default The default data.
* @return mixed The value being read.
* @return null|string|array The value being read.
public function getData($name = null, $default = null)
@@ -1561,7 +1561,7 @@ public function cookie($key)
* @param string $key The key or dotted path you want to read.
* @param string $default The default value if the cookie is not set.
* @return null|string Either the cookie value, or null if the value doesn't exist.
* @return null|array|string Either the cookie value, or null if the value doesn't exist.
public function getCookie($key, $default = null)

0 comments on commit fd98169

Please sign in to comment.
You can’t perform that action at this time.