1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-22 09:02:28 +01:00

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