@@ -31,7 +31,7 @@ |
||
| 31 | 31 | * |
| 32 | 32 | * @param string $name The name of the cookie |
| 33 | 33 | * @param string $value The value of the cookie |
| 34 | - * @param int|string|\DateTime|\DateTimeInterface $expire The time the cookie expires |
|
| 34 | + * @param integer $expire The time the cookie expires |
|
| 35 | 35 | * @param string $path The path on the server in which the cookie will be available on |
| 36 | 36 | * @param string $domain The domain that the cookie is available to |
| 37 | 37 | * @param bool $secure Whether the cookie should only be transmitted over a secure HTTPS connection from the client |
@@ -103,6 +103,10 @@ |
||
| 103 | 103 | return $target; |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | + /** |
|
| 107 | + * @param string $directory |
|
| 108 | + * @param string $name |
|
| 109 | + */ |
|
| 106 | 110 | protected function getTargetFile($directory, $name = null) |
| 107 | 111 | { |
| 108 | 112 | if (!is_dir($directory)) { |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | * Returns a header value by name. |
| 105 | 105 | * |
| 106 | 106 | * @param string $key The header name |
| 107 | - * @param mixed $default The default value |
|
| 107 | + * @param string|null $default The default value |
|
| 108 | 108 | * @param bool $first Whether to return the first value or all header values |
| 109 | 109 | * |
| 110 | 110 | * @return string|array The first header value if $first is true, an array of values otherwise |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | * Adds a custom Cache-Control directive. |
| 221 | 221 | * |
| 222 | 222 | * @param string $key The Cache-Control directive name |
| 223 | - * @param mixed $value The Cache-Control directive value |
|
| 223 | + * @param integer $value The Cache-Control directive value |
|
| 224 | 224 | */ |
| 225 | 225 | public function addCacheControlDirective($key, $value = true) |
| 226 | 226 | { |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | * Checks if an IPv4 or IPv6 address is contained in the list of given IPs or subnets. |
| 32 | 32 | * |
| 33 | 33 | * @param string $requestIp IP to check |
| 34 | - * @param string|array $ips List of IPs or subnets (can be a string if only a single one) |
|
| 34 | + * @param string[] $ips List of IPs or subnets (can be a string if only a single one) |
|
| 35 | 35 | * |
| 36 | 36 | * @return bool Whether the IP is valid |
| 37 | 37 | */ |
@@ -544,7 +544,7 @@ discard block |
||
| 544 | 544 | * |
| 545 | 545 | * You should only list the reverse proxies that you manage directly. |
| 546 | 546 | * |
| 547 | - * @param array $proxies A list of trusted proxies |
|
| 547 | + * @param string[] $proxies A list of trusted proxies |
|
| 548 | 548 | */ |
| 549 | 549 | public static function setTrustedProxies(array $proxies) |
| 550 | 550 | { |
@@ -554,7 +554,7 @@ discard block |
||
| 554 | 554 | /** |
| 555 | 555 | * Gets the list of trusted proxies. |
| 556 | 556 | * |
| 557 | - * @return array An array of trusted proxies |
|
| 557 | + * @return string[] An array of trusted proxies |
|
| 558 | 558 | */ |
| 559 | 559 | public static function getTrustedProxies() |
| 560 | 560 | { |
@@ -580,7 +580,7 @@ discard block |
||
| 580 | 580 | /** |
| 581 | 581 | * Gets the list of trusted host patterns. |
| 582 | 582 | * |
| 583 | - * @return array An array of trusted host patterns |
|
| 583 | + * @return string[] An array of trusted host patterns |
|
| 584 | 584 | */ |
| 585 | 585 | public static function getTrustedHosts() |
| 586 | 586 | { |
@@ -1469,7 +1469,6 @@ discard block |
||
| 1469 | 1469 | * |
| 1470 | 1470 | * @see https://tools.ietf.org/html/rfc7231#section-4.2.1 |
| 1471 | 1471 | * |
| 1472 | - * @param bool $andCacheable Adds the additional condition that the method should be cacheable. True by default. |
|
| 1473 | 1472 | * |
| 1474 | 1473 | * @return bool |
| 1475 | 1474 | */ |
@@ -1495,7 +1494,7 @@ discard block |
||
| 1495 | 1494 | * |
| 1496 | 1495 | * @param bool $asResource If true, a resource will be returned |
| 1497 | 1496 | * |
| 1498 | - * @return string|resource The request body content or a resource to read the body stream |
|
| 1497 | + * @return string The request body content or a resource to read the body stream |
|
| 1499 | 1498 | * |
| 1500 | 1499 | * @throws \LogicException |
| 1501 | 1500 | */ |
@@ -1928,6 +1927,9 @@ discard block |
||
| 1928 | 1927 | return false; |
| 1929 | 1928 | } |
| 1930 | 1929 | |
| 1930 | + /** |
|
| 1931 | + * @param string $content |
|
| 1932 | + */ |
|
| 1931 | 1933 | private static function createRequestFromFactory(array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array(), array $files = array(), array $server = array(), $content = null) |
| 1932 | 1934 | { |
| 1933 | 1935 | if (self::$requestFactory) { |
@@ -215,7 +215,7 @@ |
||
| 215 | 215 | * return Response::create($body, 200) |
| 216 | 216 | * ->setSharedMaxAge(300); |
| 217 | 217 | * |
| 218 | - * @param mixed $content The response content, see setContent() |
|
| 218 | + * @param string $content The response content, see setContent() |
|
| 219 | 219 | * @param int $status The response status code |
| 220 | 220 | * @param array $headers An array of response headers |
| 221 | 221 | * |
@@ -113,6 +113,7 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | 115 | * {@inheritdoc} |
| 116 | + * @param string $key |
|
| 116 | 117 | */ |
| 117 | 118 | public function remove($key) |
| 118 | 119 | { |
@@ -128,6 +129,7 @@ discard block |
||
| 128 | 129 | |
| 129 | 130 | /** |
| 130 | 131 | * {@inheritdoc} |
| 132 | + * @param string $key |
|
| 131 | 133 | */ |
| 132 | 134 | public function hasCacheControlDirective($key) |
| 133 | 135 | { |
@@ -136,6 +138,7 @@ discard block |
||
| 136 | 138 | |
| 137 | 139 | /** |
| 138 | 140 | * {@inheritdoc} |
| 141 | + * @param string $key |
|
| 139 | 142 | */ |
| 140 | 143 | public function getCacheControlDirective($key) |
| 141 | 144 | { |
@@ -81,6 +81,9 @@ |
||
| 81 | 81 | return 'memory'; |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | + /** |
|
| 85 | + * @param string $memoryLimit |
|
| 86 | + */ |
|
| 84 | 87 | private function convertToBytes($memoryLimit) |
| 85 | 88 | { |
| 86 | 89 | if ('-1' === $memoryLimit) { |
@@ -379,7 +379,7 @@ |
||
| 379 | 379 | * @param string $key The store key |
| 380 | 380 | * @param string $data The data to store |
| 381 | 381 | * |
| 382 | - * @return bool |
|
| 382 | + * @return false|null |
|
| 383 | 383 | */ |
| 384 | 384 | private function save($key, $data) |
| 385 | 385 | { |