Skip to content

Commit

Permalink
Merge pull request #261 from andrew-demb/symfony-error-handler-deprec…
Browse files Browse the repository at this point in the history
…ations

Explicitly specify with phpdoc return types from interface
  • Loading branch information
l0gicgate authored Apr 14, 2022
2 parents 9387321 + 956b766 commit 1726c66
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public function getMethod(): string

/**
* {@inheritdoc}
* @return static
*/
public function withMethod($method)
{
Expand Down Expand Up @@ -189,6 +190,7 @@ public function getRequestTarget(): string

/**
* {@inheritdoc}
* @return static
*/
public function withRequestTarget($requestTarget)
{
Expand All @@ -214,6 +216,7 @@ public function getUri(): UriInterface

/**
* {@inheritdoc}
* @return static
*/
public function withUri(UriInterface $uri, $preserveHost = false)
{
Expand Down Expand Up @@ -243,6 +246,7 @@ public function getCookieParams(): array

/**
* {@inheritdoc}
* @return static
*/
public function withCookieParams(array $cookies)
{
Expand Down Expand Up @@ -273,6 +277,7 @@ public function getQueryParams(): array

/**
* {@inheritdoc}
* @return static
*/
public function withQueryParams(array $query)
{
Expand All @@ -292,6 +297,7 @@ public function getUploadedFiles(): array

/**
* {@inheritdoc}
* @return static
*/
public function withUploadedFiles(array $uploadedFiles)
{
Expand Down Expand Up @@ -319,6 +325,7 @@ public function getAttributes(): array

/**
* {@inheritdoc}
* @return mixed
*/
public function getAttribute($name, $default = null)
{
Expand All @@ -327,6 +334,7 @@ public function getAttribute($name, $default = null)

/**
* {@inheritdoc}
* @return static
*/
public function withAttribute($name, $value)
{
Expand All @@ -338,6 +346,7 @@ public function withAttribute($name, $value)

/**
* {@inheritdoc}
* @return static
*/
public function withoutAttribute($name)
{
Expand All @@ -358,6 +367,7 @@ public function getParsedBody()

/**
* {@inheritdoc}
* @return static
*/
public function withParsedBody($data)
{
Expand Down
1 change: 1 addition & 0 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public function getStatusCode(): int

/**
* {@inheritdoc}
* @return static
*/
public function withStatus($code, $reasonPhrase = '')
{
Expand Down
2 changes: 2 additions & 0 deletions src/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public function __construct($stream, ?StreamInterface $cache = null)

/**
* {@inheritdoc}
* @return array|mixed
*/
public function getMetadata($key = null)
{
Expand Down Expand Up @@ -322,6 +323,7 @@ public function read($length): string

/**
* {@inheritdoc}
* @return int
*/
public function write($string)
{
Expand Down
1 change: 1 addition & 0 deletions src/UploadedFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ final public function __construct(

/**
* {@inheritdoc}
* @return StreamInterface
*/
public function getStream()
{
Expand Down
7 changes: 7 additions & 0 deletions src/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public function getScheme(): string

/**
* {@inheritdoc}
* @return static
*/
public function withScheme($scheme)
{
Expand Down Expand Up @@ -165,6 +166,7 @@ public function getUserInfo(): string

/**
* {@inheritdoc}
* @return static
*/
public function withUserInfo($user, $password = null)
{
Expand Down Expand Up @@ -216,6 +218,7 @@ public function getHost(): string

/**
* {@inheritdoc}
* @return static
*/
public function withHost($host)
{
Expand Down Expand Up @@ -264,6 +267,7 @@ public function getPort(): ?int

/**
* {@inheritdoc}
* @return static
*/
public function withPort($port)
{
Expand Down Expand Up @@ -312,6 +316,7 @@ public function getPath(): string

/**
* {@inheritdoc}
* @return static
*/
public function withPath($path)
{
Expand Down Expand Up @@ -360,6 +365,7 @@ public function getQuery(): string

/**
* {@inheritdoc}
* @return static
*/
public function withQuery($query)
{
Expand Down Expand Up @@ -410,6 +416,7 @@ public function getFragment(): string

/**
* {@inheritdoc}
* @return static
*/
public function withFragment($fragment)
{
Expand Down

0 comments on commit 1726c66

Please sign in to comment.