mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 12:11:19 +00:00
Refactor phpstan errors.
This commit is contained in:
@@ -24,12 +24,13 @@ declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Rules;
|
||||
|
||||
use Illuminate\Contracts\Validation\Rule;
|
||||
use Closure;
|
||||
use Illuminate\Contracts\Validation\ValidationRule;
|
||||
|
||||
/**
|
||||
* Class LessThanPiggyTarget
|
||||
*/
|
||||
class LessThanPiggyTarget implements Rule
|
||||
class LessThanPiggyTarget implements ValidationRule
|
||||
{
|
||||
/**
|
||||
* Get the validation error message.
|
||||
@@ -42,15 +43,14 @@ class LessThanPiggyTarget implements Rule
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if the validation rule passes.
|
||||
* @param string $attribute
|
||||
* @param mixed $value
|
||||
* @param Closure $fail
|
||||
*
|
||||
* @param string $attribute
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return bool
|
||||
* @return void
|
||||
*/
|
||||
public function passes($attribute, $value): bool
|
||||
public function validate(string $attribute, mixed $value, Closure $fail): void
|
||||
{
|
||||
return true;
|
||||
// TODO not sure if this is still used.
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user