Skip to content

Commit

Permalink
chore: fix phpDoc for return values
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris8934 committed Jan 26, 2024
1 parent f61eca2 commit 28ac139
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Plugin/CookiePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ private function createCookie(RequestInterface $request, string $setCookieHeader
*
* @param string $part A single cookie value in format key=value
*
* @return array{0:string, 1:?string}
* @return array{0:string, 1?:string}
*/
private function createValueKey(string $part): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/RedirectPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ final class RedirectPlugin implements Plugin
private $streamFactory;

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

0 comments on commit 28ac139

Please sign in to comment.