1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-25 10:32:31 +01:00

Update includes definition to match updated package requirements

This commit is contained in:
DaneEveritt 2022-05-04 19:11:42 -04:00
parent 34ffaebd3e
commit 4252014d18
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
14 changed files with 14 additions and 14 deletions

View File

@ -14,7 +14,7 @@ class AllocationTransformer extends BaseTransformer
*
* @var array
*/
protected $availableIncludes = ['node', 'server'];
protected array $availableIncludes = ['node', 'server'];
/**
* Return the resource name for the JSONAPI output.

View File

@ -11,7 +11,7 @@ class DatabaseHostTransformer extends BaseTransformer
/**
* @var array
*/
protected $availableIncludes = [
protected array $availableIncludes = [
'databases',
];

View File

@ -15,7 +15,7 @@ class EggTransformer extends BaseTransformer
*
* @var array
*/
protected $availableIncludes = [
protected array $availableIncludes = [
'nest',
'servers',
'config',

View File

@ -12,7 +12,7 @@ class LocationTransformer extends BaseTransformer
*
* @var array
*/
protected $availableIncludes = ['nodes', 'servers'];
protected array $availableIncludes = ['nodes', 'servers'];
/**
* Return the resource name for the JSONAPI output.

View File

@ -14,7 +14,7 @@ class NestTransformer extends BaseTransformer
*
* @var array
*/
protected $availableIncludes = [
protected array $availableIncludes = [
'eggs', 'servers',
];

View File

@ -12,7 +12,7 @@ class NodeTransformer extends BaseTransformer
*
* @var array
*/
protected $availableIncludes = ['allocations', 'location', 'servers'];
protected array $availableIncludes = ['allocations', 'location', 'servers'];
/**
* Return the resource name for the JSONAPI output.

View File

@ -12,7 +12,7 @@ class ServerDatabaseTransformer extends BaseTransformer
/**
* @var array
*/
protected $availableIncludes = ['password', 'host'];
protected array $availableIncludes = ['password', 'host'];
/**
* @var Encrypter

View File

@ -18,7 +18,7 @@ class ServerTransformer extends BaseTransformer
*
* @var array
*/
protected $availableIncludes = [
protected array $availableIncludes = [
'allocations',
'user',
'subusers',

View File

@ -12,7 +12,7 @@ class ServerVariableTransformer extends BaseTransformer
*
* @var array
*/
protected $availableIncludes = ['parent'];
protected array $availableIncludes = ['parent'];
/**
* Return the resource name for the JSONAPI output.

View File

@ -12,7 +12,7 @@ class SubuserTransformer extends BaseTransformer
*
* @var array
*/
protected $availableIncludes = ['user', 'server'];
protected array $availableIncludes = ['user', 'server'];
/**
* Return the resource name for the JSONAPI output.

View File

@ -12,7 +12,7 @@ class UserTransformer extends BaseTransformer
*
* @var array
*/
protected $availableIncludes = ['servers'];
protected array $availableIncludes = ['servers'];
/**
* Return the resource name for the JSONAPI output.

View File

@ -9,7 +9,7 @@ use Pterodactyl\Contracts\Extensions\HashidsInterface;
class DatabaseTransformer extends BaseClientTransformer
{
protected $availableIncludes = ['password'];
protected array $availableIncludes = ['password'];
/**
* @var \Illuminate\Contracts\Encryption\Encrypter

View File

@ -11,7 +11,7 @@ class ScheduleTransformer extends BaseClientTransformer
/**
* @var array
*/
protected $availableIncludes = ['tasks'];
protected array $availableIncludes = ['tasks'];
/**
* @var array

View File

@ -21,7 +21,7 @@ class ServerTransformer extends BaseClientTransformer
/**
* @var array
*/
protected $availableIncludes = ['egg', 'subusers'];
protected array $availableIncludes = ['egg', 'subusers'];
public function getResourceName(): string
{