Skip to content

Commit def2306

Browse files
committed
docs: change @phpstan-param
Rector not to delete the code.
1 parent d8f51d8 commit def2306

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

system/HTTP/IncomingRequest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ public function negotiate(string $type, array $supported, bool $strictMatch = fa
379379
* Checks if this request is.
380380
*
381381
* @param string $value HTTP verb or 'json'
382-
* @phpstan-param 'get'|'post'|'put'|'delete'|'head'|'patch'|'options'|'json' $value
382+
* @phpstan-param string|'get'|'post'|'put'|'delete'|'head'|'patch'|'options'|'json' $value
383383
*/
384384
public function is(string $value): bool
385385
{
@@ -395,7 +395,6 @@ public function is(string $value): bool
395395
return strpos($this->getHeaderLine('Content-Type'), 'application/json') !== false;
396396
}
397397

398-
// @phpstan-ignore-next-line
399398
throw new InvalidArgumentException('Unknown value: ' . $value);
400399
}
401400

0 commit comments

Comments
 (0)