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 * @var array
*/ */
protected $availableIncludes = ['node', 'server']; protected array $availableIncludes = ['node', 'server'];
/** /**
* Return the resource name for the JSONAPI output. * Return the resource name for the JSONAPI output.

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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