fix: servers API returning port as a string -> integer
This commit is contained in:
parent
bbd7d8b567
commit
059639eb42
1 changed files with 1 additions and 1 deletions
|
|
@ -813,7 +813,7 @@ public function port(): Attribute
|
||||||
{
|
{
|
||||||
return Attribute::make(
|
return Attribute::make(
|
||||||
get: function ($value) {
|
get: function ($value) {
|
||||||
return preg_replace('/[^0-9]/', '', $value);
|
return (int) preg_replace('/[^0-9]/', '', $value);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue