Skip to content

Commit 7266c66

Browse files
committed
un-type getRulesForUpdate; fixes pterodactyl#4463
1 parent 860b2d8 commit 7266c66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public static function getRulesForField(string $field): array
117117
* Returns the rules associated with the model, specifically for updating the given model
118118
* rather than just creating it.
119119
*/
120-
public static function getRulesForUpdate(IlluminateModel|int|string $model, string $column = 'id'): array
120+
public static function getRulesForUpdate($model, string $column = 'id'): array
121121
{
122122
if ($model instanceof Model) {
123123
[$id, $column] = [$model->getKey(), $model->getKeyName()];

0 commit comments

Comments
 (0)