Skip to content

Commit 375c975

Browse files
committed
fixed type of return value of generateForm method
1 parent dbcbe85 commit 375c975

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

src/Adapter/AdapterAbstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function getParameters(): array
144144
/**
145145
* @return string
146146
*/
147-
public function form(): string
147+
public function form(): \Illuminate\View\View
148148
{
149149
return $this->generateForm();
150150
}

src/Adapter/AdapterInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function setParameters(array $parameters = []): AdapterInterface;
1313
/**
1414
* @return string
1515
*/
16-
public function form(): string;
16+
public function form(): \Illuminate\View\View;
1717

1818
/**
1919
* @return array

src/Adapter/Mellat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function requestToken()
8585
* @return mixed
8686
* @throws Exception
8787
*/
88-
protected function generateForm(): string
88+
protected function generateForm(): \Illuminate\View\View
8989
{
9090
$refId = $this->requestToken();
9191

src/Adapter/Parsian.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected function requestToken()
101101
* @throws Exception
102102
* @throws \Tartan\Larapay\Adapter\Exception
103103
*/
104-
protected function generateForm(): string
104+
protected function generateForm(): \Illuminate\View\View
105105
{
106106
$authority = $this->requestToken();
107107

src/Adapter/Pasargad.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Pasargad extends AdapterAbstract implements AdapterInterface
3131
* @return string
3232
* @throws Exception
3333
*/
34-
protected function generateForm(): string
34+
protected function generateForm(): \Illuminate\View\View
3535
{
3636
$this->checkRequiredParameters([
3737
'amount',

src/Adapter/Payir.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ protected function requestToken(): string
7878
* @throws Exception
7979
* @throws \Tartan\Larapay\Adapter\Exception
8080
*/
81-
protected function generateForm(): string
81+
protected function generateForm(): \Illuminate\View\View
8282
{
8383
$authority = $this->requestToken();
8484

src/Adapter/Saman.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function requestToken(): string
7676
}
7777
}
7878

79-
public function generateForm(): string
79+
public function generateForm(): \Illuminate\View\View
8080
{
8181
XLog::debug(__METHOD__);
8282

src/Adapter/Zarinpal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected function requestToken(): string
8484
* @throws Exception
8585
* @throws \Tartan\Larapay\Adapter\Exception
8686
*/
87-
protected function generateForm(): string
87+
protected function generateForm(): \Illuminate\View\View
8888
{
8989
$authority = $this->requestToken();
9090

0 commit comments

Comments
 (0)