Skip to content

Commit

Permalink
Merge 591cc56 into 81a68d6
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Feb 17, 2019
2 parents 81a68d6 + 591cc56 commit 69a9e61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/CosyComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class CosyComposer
private $token;

/**
* @var string
* @var Slug
*/
private $slug;

Expand Down Expand Up @@ -354,8 +354,8 @@ public function setUrl($url = null)
}
}
$this->urlArray = $slug_url_obj;
$providers = Slug::getSupportedProviders();
if (!empty($slug_url_obj['host'])) {
$providers = Slug::getSupportedProviders();
$providers = array_merge($providers, [$slug_url_obj['host']]);
}
$this->slug = Slug::createFromUrlAndSupportedProviders($url, $providers);
Expand Down
1 change: 0 additions & 1 deletion src/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public function setContext($context)

/**
* Message constructor.
* @param $message
*/
public function __construct($message, $type = self::MESSAGE)
{
Expand Down

0 comments on commit 69a9e61

Please sign in to comment.