Skip to content

Commit c5c6b85

Browse files
committed
fixed getCurl method
1 parent 73451e9 commit c5c6b85

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
},
1818
"require": {
19-
"php": ">=5.6",
19+
"php": ">=7.0",
2020
"ext-soap": "*",
2121
"ext-curl": "*",
2222
"ext-json": "*",

src/Adapter/AdapterAbstract.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Tartan\IranianSms\Adapter;
44

5+
use Samuraee\EasyCurl\EasyCurl;
56
use Tartan\IranianSms\Exception;
67

78
abstract class AdapterAbstract {
@@ -17,4 +18,8 @@ public function filterNumber(string $number) {
1718

1819
}
1920

21+
public function getCurl(): EasyCurl
22+
{
23+
return new EasyCurl();
24+
}
2025
}

0 commit comments

Comments
 (0)