From 2fe264038be010ba2dacdd45eb4209db9e73f2b4 Mon Sep 17 00:00:00 2001 From: Nyholm Date: Thu, 17 Jan 2019 20:57:22 +0100 Subject: [PATCH] Bugfix --- .travis.yml | 2 +- phpstan.neon | 2 ++ src/Model/Message/ShowResponse.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index da48896..42321bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,7 +33,7 @@ matrix: env: DEPENDENCIES="phpstan/phpstan" script: - ./vendor/bin/phpstan --version - - ./vendor/bin/phpstan analyse src + - ./vendor/bin/phpstan analyse before_install: - if [[ "$PREFER_COVERAGE" = true ]] && [[ "$TRAVIS_PULL_REQUEST" = false ]]; then TEST_COMMAND="composer test-coverage" COVERAGE=true; fi diff --git a/phpstan.neon b/phpstan.neon index 1b8a12e..20b8f0d 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,3 +1,5 @@ parameters: level: 5 + paths: + - src diff --git a/src/Model/Message/ShowResponse.php b/src/Model/Message/ShowResponse.php index 52451c4..9069ccf 100644 --- a/src/Model/Message/ShowResponse.php +++ b/src/Model/Message/ShowResponse.php @@ -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->recipients = $data['recipients'] ?? null;