From 48be882cbc6bef192653c1c42bcced9575fb35dd Mon Sep 17 00:00:00 2001 From: Adam Kadlec Date: Sun, 14 Jan 2018 14:31:54 +0100 Subject: [PATCH] - Fixing return type --- .travis.yml | 1 + src/IPub/Gravatar/Gravatar.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 12c385a..58380d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: php env: - NETTE=default + - NETTE=~2.4.0 php: - 7.1 diff --git a/src/IPub/Gravatar/Gravatar.php b/src/IPub/Gravatar/Gravatar.php index 18a3439..2ef3391 100644 --- a/src/IPub/Gravatar/Gravatar.php +++ b/src/IPub/Gravatar/Gravatar.php @@ -229,7 +229,7 @@ public function setDefaultImage($image) : void * * @return mixed - False if no default image set, string if one is set */ - public function getDefaultImage(string $defaultImage = NULL) : void + public function getDefaultImage(string $defaultImage = NULL) : ?string { if ($defaultImage !== NULL && in_array($defaultImage, ['404', 'mm', 'identicon', 'monsterid', 'wavatar', 'retro'])) { return $defaultImage;