un-type getRulesForUpdate; fixes #4463

This commit is contained in:
Matthew Penner 2022-10-23 18:14:50 -06:00
parent 860b2d890b
commit 7266c66ebf
No known key found for this signature in database

View file

@ -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()];