Skip to content

Commit

Permalink
- Fixing service registration
Browse files Browse the repository at this point in the history
- Added missing return type
  • Loading branch information
akadlec committed Mar 17, 2018
1 parent 0251ded commit 8e2cc7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/IPub/Gravatar/DI/GravatarExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ public function loadConfiguration() : void

// Create cache services
$builder->addDefinition($this->prefix('cache'))
->setType(Caching\Cache::class, ['@cacheStorage', 'IPub.Gravatar'])
->setType(Caching\Cache::class)
->setArguments(['@cacheStorage', 'IPub.Gravatar'])
->setInject(FALSE);

// Register template helpers
Expand Down
2 changes: 1 addition & 1 deletion src/IPub/Gravatar/Latte/Macros.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function macroAttrGravatar(MacroNode $node, PhpWriter $writer) : string
*/
public static function prepareMacroArguments(string $macro) : array
{
$arguments = array_map(function ($value) {
$arguments = array_map(function ($value) : string {
return trim($value);
}, explode(',', $macro));

Expand Down

0 comments on commit 8e2cc7a

Please sign in to comment.