mirror of
https://github.com/pelican-dev/panel.git
synced 2025-06-18 07:21:08 +02:00
Resolve this for now
This commit is contained in:
parent
3d8847a508
commit
1aa51d15f0
@ -81,9 +81,9 @@ class AppServiceProvider extends ServiceProvider
|
||||
|
||||
// Assign custom validation rules
|
||||
Validator::extend('port', function ($attribute, $value, $parameters, $validator) {
|
||||
$rule = InvokableValidationRule::make(new Port(...$parameters));
|
||||
$rule->setValidator($validator);
|
||||
$rule->setData($validator->getData());
|
||||
$rule = InvokableValidationRule::make(new Port());
|
||||
$rule->setValidator($validator); // @phpstan-ignore-line
|
||||
$rule->setData($validator->getData()); // @phpstan-ignore-line
|
||||
|
||||
$result = $rule->passes($attribute, $value);
|
||||
if (!$result) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user