Skip to content

fixed automatic wallet creation when calling float balance #1447

fixed automatic wallet creation when calling float balance

fixed automatic wallet creation when calling float balance #1447

Triggered via push September 23, 2024 05:35
Status Failure
Total duration 47s
Artifacts

phpstan.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

7 errors
phpstan: src/Models/Wallet.php#L1
Ignored error pattern #^Method Bavix\\Wallet\\Models\\Wallet\:\:getAvailableBalanceAttribute\(\) should return float\|int\|string but returns mixed\.$# in path /home/runner/work/laravel-wallet/laravel-wallet/src/Models/Wallet.php was not matched in reported errors.
phpstan: src/Models/Wallet.php#L1
Ignored error pattern #^Method Bavix\\Wallet\\Models\\Wallet\:\:wallet\(\) should return Illuminate\\Database\\Eloquent\\Relations\\MorphOne\<Bavix\\Wallet\\Models\\Wallet\> but returns Illuminate\\Database\\Eloquent\\Relations\\MorphOne\<Illuminate\\Database\\Eloquent\\Model\>\.$# in path /home/runner/work/laravel-wallet/laravel-wallet/src/Models/Wallet.php was not matched in reported errors.
phpstan: src/Models/Wallet.php#L1
Ignored error pattern #^Parameter \#1 \$related of method Illuminate\\Database\\Eloquent\\Model\:\:morphMany\(\) expects string, mixed given\.$# in path /home/runner/work/laravel-wallet/laravel-wallet/src/Models/Wallet.php was not matched in reported errors.
phpstan: src/Models/Wallet.php#L169
Ignored error pattern #^Parameter \#1 \$related of method Illuminate\\Database\\Eloquent\\Model\:\:hasMany\(\) expects string, mixed given\.$# in path /home/runner/work/laravel-wallet/laravel-wallet/src/Models/Wallet.php is expected to occur 5 times, but occurred only 1 time.
phpstan: src/Traits/MorphOneWallet.php (in context of class Bavix/Wallet/Models/Wallet)#L39
Cannot call method getDynamicDefaultSlug() on class-string|object.
phpstan: src/Traits/MorphOneWallet.php (in context of class Bavix/Wallet/Models/Wallet)#L39
Cannot call method getDynamicDefaultSlug() on class-string|object.
phpstan
Process completed with exit code 1.