Skip to content

Commit

Permalink
fix twittercard dependencies in construct for unit tests (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
edbizarro authored and vinicius73 committed Apr 30, 2016
1 parent 088222e commit 90c2875
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SEOTools/Contracts/TwitterCards.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface TwitterCards
/**
* @param array $defaults
*/
public function __construct(array $defaults);
public function __construct(array $defaults = []);

/**
* @return string
Expand Down
2 changes: 1 addition & 1 deletion src/SEOTools/TwitterCards.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TwitterCards implements TwitterCardsContract
/**
* @param array $defaults
*/
public function __construct(array $defaults)
public function __construct(array $defaults = [])
{
$this->values = $defaults;
}
Expand Down

0 comments on commit 90c2875

Please sign in to comment.