🆙 Fix more errors php stan 🆙

This commit is contained in:
Remco
2026-01-19 17:50:34 +01:00
parent 521f9c884c
commit 649f9f311d
26 changed files with 210 additions and 68 deletions
+4 -3
View File
@@ -3,15 +3,16 @@
namespace App\Actions;
use App\Enums\CurrencyTypes;
use App\Models\User;
use App\Services\RconService;
class SendCurrency
{
public function __construct(protected RconService $rcon) {}
public function execute($user, string $type, ?int $amount)
public function execute(User $user, string $type, ?int $amount): bool
{
if (! $amount && $amount <= 0) {
if (! $amount || $amount <= 0) {
return false;
}
@@ -33,6 +34,6 @@ class SendCurrency
};
}
return null;
return true;
}
}