Skip to content

Commit

Permalink
Merge pull request #11 from cashier-provider/2.x
Browse files Browse the repository at this point in the history
Fixed TypeError : Argument 1 passed to URI::__construct() must be of the type string, null given
  • Loading branch information
Andrey Helldar authored Dec 8, 2021
2 parents c504624 + 3f9c5f3 commit 6948cf9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Requests/BaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
namespace CashierProvider\Tinkoff\QrCode\Requests;

use CashierProvider\Core\Http\Request;
use CashierProvider\Core\Support\URI;
use CashierProvider\Tinkoff\Auth\Auth;

abstract class BaseRequest extends Request
Expand All @@ -36,8 +37,8 @@ public function getRawHeaders(): array
];
}

protected function getHost(): string
protected function getUriBuilder(): URI
{
return $this->host;
return URI::make($this->host, null);
}
}

0 comments on commit 6948cf9

Please sign in to comment.