Skip to content

Commit 06f7c6b

Browse files
authored
Bugfix for construct
Defaulting agreement to an empty string means that it will never load the config() as fallback
1 parent 9c6c3a1 commit 06f7c6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Economic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Economic
4343

4444
protected $stripNullValues;
4545

46-
public function __construct($agreement = '', $apiSecret = null, $apiPublic = null, $stripNull = null)
46+
public function __construct($agreement = null, $apiSecret = null, $apiPublic = null, $stripNull = null)
4747
{
4848
$this->agreement = $agreement ?? config('economic.agreement');
4949
$this->apiSecret = $apiSecret ?? config('economic.secret_token');

0 commit comments

Comments
 (0)