Skip to content

Commit 19a56b1

Browse files
committed
remove extra params - add type hint
1 parent 63d12bc commit 19a56b1

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/Traits/BalanceOperation.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ public function hasBalance(): bool
1818

1919
/**
2020
* Decrement Balance and create a log entry.
21-
*
22-
* @param ?string $notes
2321
*/
2422
public function decrementAndCreateLog(int|float $value, ?string $notes = null): void
2523
{
@@ -29,8 +27,6 @@ public function decrementAndCreateLog(int|float $value, ?string $notes = null):
2927

3028
/**
3129
* Increment Balance and create a log entry.
32-
*
33-
* @param ?string $notes
3430
*/
3531
public function incrementAndCreateLog(int|float $value, ?string $notes = null): void
3632
{
@@ -40,8 +36,6 @@ public function incrementAndCreateLog(int|float $value, ?string $notes = null):
4036

4137
/**
4238
* Create a new log record
43-
*
44-
* @param ?string $notes
4539
*/
4640
protected function createLog(string $logType, int|float $value, ?string $notes = null): void
4741
{

src/Traits/Loggable.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
namespace HPWebdeveloper\LaravelPayPocket\Traits;
44

55
use HPWebdeveloper\LaravelPayPocket\Models\WalletsLog;
6+
use Illuminate\Database\Eloquent\Relations\MorphMany;
67

78
trait Loggable
89
{
9-
public function logs()
10+
public function logs(): MorphMany
1011
{
1112
return $this->morphMany(WalletsLog::class, 'loggable');
1213
}

0 commit comments

Comments
 (0)