Skip to content

Commit 1607faa

Browse files
committed
fixed php warning
1 parent 47f9a07 commit 1607faa

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/Traits/PaystackConfig.php renamed to src/PaystackConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
namespace Myckhel\Paystack\Traits;
3+
namespace Myckhel\Paystack;
44

55
use Illuminate\Support\Facades\Config;
66

77
/**
88
*
99
*/
10-
trait PaystackConfig
10+
class PaystackConfig
1111
{
1212
static function config(String $config = null)
1313
{

src/Traits/Request.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Myckhel\Paystack\Traits;
44

55
use Illuminate\Support\Facades\Http;
6+
use Myckhel\Paystack\PaystackConfig;
67

78
class Props
89
{
@@ -20,7 +21,7 @@ trait Request
2021
{
2122
public static function config()
2223
{
23-
return new Props(PayStackConfig::config());
24+
return new Props(PaystackConfig::config());
2425
}
2526

2627
public static function post($endpoint, $params = [], $version = null)

src/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Myckhel\Paystack\Http\Controllers\DedicatedVirtualAccountController;
1010
use Myckhel\Paystack\Http\Controllers\DisputeController;
1111
use Myckhel\Paystack\Http\Controllers\TransactionController;
12-
use Myckhel\Paystack\Traits\PaystackConfig;
12+
use Myckhel\Paystack\PaystackConfig;
1313
use Myckhel\Paystack\Http\Controllers\HookController;
1414
use Myckhel\Paystack\Http\Controllers\InvoiceController;
1515
use Myckhel\Paystack\Http\Controllers\MiscellaneousController;

0 commit comments

Comments
 (0)