Skip to content

Commit

Permalink
Update Action.php
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Jun 27, 2024
1 parent 209c72c commit 4d3e71a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function handleFormRequest(Request $request, Model $model): void

if (in_array(HasRootEvents::class, class_uses_recursive($model))) {
$models->each(static function (Model $model) use ($request): void {
/** @phpstan-assert !null $model->recordRootEvent() */
/** @phpstan-assert \Cone\Root\Traits\HasRootEvents $model */
$model->recordRootEvent(

Check failure on line 217 in src/Actions/Action.php

View workflow job for this annotation

GitHub Actions / 3️⃣ Static Analysis

Call to an undefined method Illuminate\Database\Eloquent\Model::recordRootEvent().
Str::of(static::class)->classBasename()->headline()->value(),
$request->user()
Expand Down

0 comments on commit 4d3e71a

Please sign in to comment.