Fixed some phpstan errors

This commit is contained in:
Alejandro Celaya
2021-07-19 18:35:42 +02:00
parent bceea090ed
commit b8fa234dbb
4 changed files with 4 additions and 7 deletions

View File

@@ -18,6 +18,7 @@ class DefaultShortCodesLengthMiddleware implements MiddlewareInterface
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
/** @var array $body */
$body = $request->getParsedBody();
if (! isset($body[ShortUrlInputFilter::SHORT_CODE_LENGTH])) {
$body[ShortUrlInputFilter::SHORT_CODE_LENGTH] = $this->defaultShortCodesLength;