Skip to content

Commit 0c29246

Browse files
Update HttpApi.php
Since PHP 7.4, we need to initialize a variable before comparing because undefined will not match null. These will trigger errors if Mailgun\Hydrator\NoopHydrator get used to initialize Mailgun\Mailgun;
1 parent 3b1e971 commit 0c29246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Api/HttpApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ abstract class HttpApi
3838
/**
3939
* @var Hydrator|null
4040
*/
41-
protected ?Hydrator $hydrator;
41+
protected ?Hydrator $hydrator = null;
4242

4343
/**
4444
* @var RequestBuilder

0 commit comments

Comments
 (0)