Documented deprecated endpoint

This commit is contained in:
Alejandro Celaya 2019-05-05 09:52:04 +02:00
parent 320c8e2d6b
commit f45e34cfcf
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this
### Deprecated
* *Nothing*
* [#406](https://github.com/shlinkio/shlink/issues/406) Deprecated `PUT /short-urls/{shortCode}` REST endpoint in favor of `PATCH /short-urls/{shortCode}`.
#### Removed

View file

@ -37,7 +37,7 @@ class CrossDomainMiddleware implements MiddlewareInterface, RequestMethodInterfa
private function addOptionsHeaders(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface
{
/** @var RouteResult $matchedRoute */
/** @var RouteResult|null $matchedRoute */
$matchedRoute = $request->getAttribute(RouteResult::class);
$matchedMethods = $matchedRoute !== null ? $matchedRoute->getAllowedMethods() : [
self::METHOD_GET,