From 7266c66ebf76877436a1288f1dd57343df497fc8 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Sun, 23 Oct 2022 18:14:50 -0600 Subject: [PATCH] un-type getRulesForUpdate; fixes #4463 --- app/Models/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Model.php b/app/Models/Model.php index 5b028c67c..c5bc666d1 100644 --- a/app/Models/Model.php +++ b/app/Models/Model.php @@ -117,7 +117,7 @@ abstract class Model extends IlluminateModel * Returns the rules associated with the model, specifically for updating the given model * rather than just creating it. */ - public static function getRulesForUpdate(IlluminateModel|int|string $model, string $column = 'id'): array + public static function getRulesForUpdate($model, string $column = 'id'): array { if ($model instanceof Model) { [$id, $column] = [$model->getKey(), $model->getKeyName()];