Skip to content

Commit 9125ba4

Browse files
authored
Merge pull request #28 from ao-jhelmich/master
Explicitly declare $client as nullable in SitemapParser constructor
2 parents c414ec3 + c7cd8ec commit 9125ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SitemapParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class SitemapParser
109109
* @param array $config Configuration options
110110
* @throws Exceptions\SitemapParserException
111111
*/
112-
public function __construct($userAgent = self::DEFAULT_USER_AGENT, array $config = [], GuzzleHttp\Client $client = null)
112+
public function __construct($userAgent = self::DEFAULT_USER_AGENT, array $config = [], ?GuzzleHttp\Client $client = null)
113113
{
114114
mb_language("uni");
115115
if (!mb_internal_encoding(self::ENCODING)) {

0 commit comments

Comments
 (0)