Merge pull request #892 from acelaya-forks/feature/fix-typehint

Feature/fix typehint
This commit is contained in:
Alejandro Celaya 2020-11-10 17:28:10 +01:00 committed by GitHub
commit 4dbcf6857e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 3 deletions

View file

@ -4,6 +4,24 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org). The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org).
## [Unreleased]
### Added
* *Nothing*
### Changed
* *Nothing*
### Deprecated
* *Nothing*
### Removed
* *Nothing*
### Fixed
* [#891](https://github.com/shlinkio/shlink/issues/891) Fixed error when running migrations in postgres due to incorrect return type hint.
* [#846](https://github.com/shlinkio/shlink/issues/846) Fixed base image used for the PHP-FPM dev container.
## [2.4.0] - 2020-11-08 ## [2.4.0] - 2020-11-08
### Added ### Added
* [#829](https://github.com/shlinkio/shlink/issues/829) Added support for QR codes in SVG format, by passing `?format=svg` to the QR code URL. * [#829](https://github.com/shlinkio/shlink/issues/829) Added support for QR codes in SVG format, by passing `?format=svg` to the QR code URL.

View file

@ -1,6 +1,6 @@
FROM php:7.4.11-alpine3.12 as base FROM php:7.4.11-alpine3.12 as base
ARG SHLINK_VERSION=2.3.0 ARG SHLINK_VERSION=2.4.0
ENV SHLINK_VERSION ${SHLINK_VERSION} ENV SHLINK_VERSION ${SHLINK_VERSION}
ENV SWOOLE_VERSION 4.5.5 ENV SWOOLE_VERSION 4.5.5
ENV LC_ALL "C" ENV LC_ALL "C"

View file

@ -1,4 +1,4 @@
FROM php:7.4.11-alpine3.12 FROM php:7.4.11-fpm-alpine3.12
MAINTAINER Alejandro Celaya <alejandro@alejandrocelaya.com> MAINTAINER Alejandro Celaya <alejandro@alejandrocelaya.com>
ENV APCU_VERSION 5.1.18 ENV APCU_VERSION 5.1.18

View file

@ -60,7 +60,10 @@ final class Version20201102113208 extends AbstractMigration
->execute(); ->execute();
} }
private function resolveOneApiKeyId(Result $result): ?string /**
* @return string|int|null
*/
private function resolveOneApiKeyId(Result $result)
{ {
$results = []; $results = [];
while ($row = $result->fetchAssociative()) { while ($row = $result->fetchAssociative()) {