Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Oct 21, 2023
1 parent 2ececb0 commit f3886e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/Fieldset.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function toValidate(Request $request, Model $model): array
{
return array_merge(
parent::toValidate($request, $model),
$this->resolveFields($request)->mapToValidate($request)
$this->resolveFields($request)->mapToValidate($request, $model)
);
}
}
2 changes: 2 additions & 0 deletions src/Fields/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ protected function prune(Request $request, Model $model, array $keys): int
*/
public function toOption(Request $request, Model $model, Model $related): array
{
/** @var \Cone\Root\Fields\File $related */

$option = parent::toOption($request, $model, $related);

Check failure on line 227 in src/Fields/File.php

View workflow job for this annotation

GitHub Actions / 3️⃣ Static Analysis

Parameter #3 $related of method Cone\Root\Fields\BelongsToMany<Illuminate\Database\Eloquent\Relations\MorphToMany>::toOption() expects Illuminate\Database\Eloquent\Model, Cone\Root\Fields\File given.

$name = sprintf(
Expand Down

0 comments on commit f3886e1

Please sign in to comment.