mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 17:12:30 +01:00
un-type getRulesForUpdate; fixes #4463
This commit is contained in:
parent
860b2d890b
commit
7266c66ebf
@ -117,7 +117,7 @@ abstract class Model extends IlluminateModel
|
|||||||
* Returns the rules associated with the model, specifically for updating the given model
|
* Returns the rules associated with the model, specifically for updating the given model
|
||||||
* rather than just creating it.
|
* 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) {
|
if ($model instanceof Model) {
|
||||||
[$id, $column] = [$model->getKey(), $model->getKeyName()];
|
[$id, $column] = [$model->getKey(), $model->getKeyName()];
|
||||||
|
Loading…
Reference in New Issue
Block a user