Skip to content

Commit 28ac139

Browse files
committed
chore: fix phpDoc for return values
1 parent f61eca2 commit 28ac139

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Plugin/CookiePlugin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private function createCookie(RequestInterface $request, string $setCookieHeader
164164
*
165165
* @param string $part A single cookie value in format key=value
166166
*
167-
* @return array{0:string, 1:?string}
167+
* @return array{0:string, 1?:string}
168168
*/
169169
private function createValueKey(string $part): array
170170
{

src/Plugin/RedirectPlugin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ final class RedirectPlugin implements Plugin
113113
private $streamFactory;
114114

115115
/**
116-
* @param array{'preserve_header'?: bool|string[], 'use_default_for_multiple'?: bool, 'strict'?: bool} $config
116+
* @param array{'preserve_header'?: bool|string[], 'use_default_for_multiple'?: bool, 'strict'?: bool, 'stream_factory'?:StreamFactoryInterface} $config
117117
*
118118
* Configuration options:
119119
* - preserve_header: True keeps all headers, false remove all of them, an array is interpreted as a list of header names to keep

0 commit comments

Comments
 (0)