Skip to content

Commit 353f8eb

Browse files
committed
kv bugfixes
1 parent b9bb758 commit 353f8eb

39 files changed

+83
-110
lines changed

src/ACL/ACLAuthMethod.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ class ACLAuthMethod extends AbstractModel
5757
/** @var string|null */
5858
public ?string $Namespace = null;
5959

60-
/** @var array[] */
6160
protected const FIELDS = [
6261
self::FIELD_DISPLAY_NAME => [
6362
Hydration::FIELD_TYPE => Hydration::STRING,

src/ACL/ACLAuthMethodListEntry.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ class ACLAuthMethodListEntry extends AbstractModel
4545
/** @var string|null */
4646
public ?string $Namespace = null;
4747

48-
/** @var array[] */
4948
protected const FIELDS = [
5049
self::FIELD_DISPLAY_NAME => [
5150
Hydration::FIELD_TYPE => Hydration::STRING,

src/ACL/ACLAuthMethodNamespaceRule.php

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@
2626
*/
2727
class ACLAuthMethodNamespaceRule extends AbstractModel
2828
{
29-
private const FIELD_SELECTOR = 'Selector';
30-
private const FIELD_BIND_NAMESPACE = 'BindNamespace';
31-
32-
/** @var string|null */
33-
public ?string $Selector = null;
34-
/** @var string|null */
35-
public ?string $BindNamespace = null;
36-
37-
/** @var array[] */
3829
protected const FIELDS = [
3930
self::FIELD_SELECTOR=> [
4031
Hydration::FIELD_TYPE => Hydration::STRING,
@@ -45,6 +36,13 @@ class ACLAuthMethodNamespaceRule extends AbstractModel
4536
Hydration::FIELD_NULLABLE=> true,
4637
],
4738
];
39+
private const FIELD_SELECTOR = 'Selector';
40+
private const FIELD_BIND_NAMESPACE = 'BindNamespace';
41+
42+
/** @var string|null */
43+
public ?string $Selector = null;
44+
/** @var string|null */
45+
public ?string $BindNamespace = null;
4846

4947
/**
5048
* @return string|null

src/ACL/ACLBindingRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ class ACLBindingRule extends AbstractModel
4747
/** @var string|null */
4848
public ?string $Namespace = null;
4949

50-
/** @var array[] */
5150
protected const FIELDS = [
5251
self::FIELD_NAMESPACE => [
5352
Hydration::FIELD_TYPE => Hydration::STRING,

src/ACL/ACLReplicationStatus.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ class ACLReplicationStatus extends AbstractModel
4747
/** @var \DCarbone\Go\Time\Time */
4848
public Time\Time $LastError;
4949

50-
/** @var array[] */
5150
protected const FIELDS = [
5251
self::FIELD_LAST_SUCCESS => [
5352
Hydration::FIELD_CALLBACK => Hydration::CALLABLE_HYDRATE_TIME,

src/ACL/ACLRole.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ class ACLRole extends AbstractModel
5353
/** @var string|null */
5454
public ?string $Namespace = null;
5555

56-
/** @var array[] */
5756
protected const FIELDS = [
5857
self::FIELD_POLICIES => [
5958
Hydration::FIELD_TYPE => Hydration::ARRAY,

src/ACL/ACLToken.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ class ACLToken extends AbstractModel
7777
*/
7878
public ?string $Rules = null;
7979

80-
/** @var array[] */
8180
protected const FIELDS = [
8281
self::FIELD_POLICIES => [
8382
Hydration::FIELD_TYPE => Hydration::ARRAY,

src/ACL/ACLTokenListEntry.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ class ACLTokenListEntry extends AbstractModel
6767
/** @var string|null */
6868
public ?string $Namespace = null;
6969

70-
/** @var array[] */
7170
protected const FIELDS = [
7271
self::FIELD_POLICIES => [
7372
Hydration::FIELD_TYPE => Hydration::ARRAY,

src/AbstractModel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ abstract class AbstractModel implements \JsonSerializable
2525
{
2626
use Hydratable;
2727

28+
protected const FIELDS = [];
29+
2830
/**
2931
* AbstractModel constructor.
3032
*

src/Agent/AgentServiceChecksInfo.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class AgentServiceChecksInfo extends AbstractModel
3737
/** @var \DCarbone\PHPConsulAPI\Health\HealthChecks */
3838
public HealthChecks $Checks;
3939

40-
/** @var array[] */
4140
protected const FIELDS = [
4241
self::FIELD_SERVICE => [
4342
Hydration::FIELD_TYPE => Hydration::OBJECT,

0 commit comments

Comments
 (0)