Skip to content

Commit

Permalink
- Fixing return type
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Jan 14, 2018
1 parent d5cb5b0 commit 48be882
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: php

env:
- NETTE=default
- NETTE=~2.4.0

php:
- 7.1
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Gravatar/Gravatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 48be882

Please sign in to comment.