diff --git a/src/Cision.php b/src/Cision.php index 3618344..bbdf5e9 100755 --- a/src/Cision.php +++ b/src/Cision.php @@ -15,7 +15,7 @@ class Cision /** * Constructor that accepts a slug identifier for the feed. */ - public function __construct(?string $slug = null) + public function __construct(string $slug) { $this->slug = $slug; } diff --git a/tests/CisionTest.php b/tests/CisionTest.php index da78677..c4f67aa 100644 --- a/tests/CisionTest.php +++ b/tests/CisionTest.php @@ -24,7 +24,7 @@ it('can fetch and parse full article content', function () { 'news.cision.com/*' => Http::response(file_get_contents(__DIR__.'/Fixtures/article.html')), ]); - $cision = new Cision; + $cision = new Cision('test-company'); $content = $cision->fetchContent('https://news.cision.com/se/example/r/test,c123456'); expect($content)->toHaveKeys(['header', 'published_at', 'content']);