This commit is contained in:
Nyholm 2019-01-17 20:57:22 +01:00 committed by David Garcia
parent 997d545e61
commit 2fe264038b
3 changed files with 4 additions and 2 deletions

View File

@ -33,7 +33,7 @@ matrix:
env: DEPENDENCIES="phpstan/phpstan" env: DEPENDENCIES="phpstan/phpstan"
script: script:
- ./vendor/bin/phpstan --version - ./vendor/bin/phpstan --version
- ./vendor/bin/phpstan analyse src - ./vendor/bin/phpstan analyse
before_install: before_install:
- if [[ "$PREFER_COVERAGE" = true ]] && [[ "$TRAVIS_PULL_REQUEST" = false ]]; then TEST_COMMAND="composer test-coverage" COVERAGE=true; fi - if [[ "$PREFER_COVERAGE" = true ]] && [[ "$TRAVIS_PULL_REQUEST" = false ]]; then TEST_COMMAND="composer test-coverage" COVERAGE=true; fi

View File

@ -1,3 +1,5 @@
parameters: parameters:
level: 5 level: 5
paths:
- src

View File

@ -38,7 +38,7 @@ final class ShowResponse implements ApiResponse
{ {
} }
public static function create(array $data): array public static function create(array $data): self
{ {
$model = new self(); $model = new self();
$model->recipients = $data['recipients'] ?? null; $model->recipients = $data['recipients'] ?? null;