Skip to content

Commit 7c7324b

Browse files
committed
re-adding array-accessibility
1 parent f0338fa commit 7c7324b

File tree

85 files changed

+390
-266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+390
-266
lines changed

phpunit.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
</php>
1515

1616
<testsuites>
17-
<testsuite name=""></testsuite>
18-
1917
<testsuite name="usage-config">
2018
<file>./tests/Usage/ConfigUsageTest.php</file>
2119
</testsuite>

src/ACL/ACLAuthMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ACLAuthMethod extends AbstractModel
5858
public ?string $Namespace = null;
5959

6060
/** @var array[] */
61-
protected static array $fields = [
61+
protected const FIELDS = [
6262
self::FIELD_DISPLAY_NAME => [
6363
Hydration::FIELD_TYPE => Hydration::STRING,
6464
Hydration::FIELD_NULLABLE => true,

src/ACL/ACLAuthMethodListEntry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ACLAuthMethodListEntry extends AbstractModel
4646
public ?string $Namespace = null;
4747

4848
/** @var array[] */
49-
protected static array $fields = [
49+
protected const FIELDS = [
5050
self::FIELD_DISPLAY_NAME => [
5151
Hydration::FIELD_TYPE => Hydration::STRING,
5252
Hydration::FIELD_NULLABLE => true,

src/ACL/ACLAuthMethodNamespaceRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ACLAuthMethodNamespaceRule extends AbstractModel
3535
public ?string $BindNamespace = null;
3636

3737
/** @var array[] */
38-
protected static array $fields = [
38+
protected const FIELDS = [
3939
self::FIELD_SELECTOR=> [
4040
Hydration::FIELD_TYPE => Hydration::STRING,
4141
Hydration::FIELD_NULLABLE=> true,

src/ACL/ACLBindingRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ACLBindingRule extends AbstractModel
4848
public ?string $Namespace = null;
4949

5050
/** @var array[] */
51-
protected static array $fields = [
51+
protected const FIELDS = [
5252
self::FIELD_NAMESPACE => [
5353
Hydration::FIELD_TYPE => Hydration::STRING,
5454
Hydration::FIELD_NULLABLE => true,

src/ACL/ACLEntriesResponse.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,14 @@
1818
limitations under the License.
1919
*/
2020

21-
use DCarbone\PHPConsulAPI\AbstractResponse;
22-
use DCarbone\PHPConsulAPI\ErrorContainer;
23-
use DCarbone\PHPConsulAPI\QueryMetaContainer;
21+
use DCarbone\PHPConsulAPI\AbstractValuedQueryResponse;
2422
use DCarbone\PHPConsulAPI\HydratedResponseInterface;
2523

2624
/**
2725
* Class ACLEntriesResponse
2826
*/
29-
class ACLEntriesResponse extends AbstractResponse implements HydratedResponseInterface
27+
class ACLEntriesResponse extends AbstractValuedQueryResponse implements HydratedResponseInterface
3028
{
31-
use QueryMetaContainer;
32-
use ErrorContainer;
33-
3429
/** @var \DCarbone\PHPConsulAPI\ACL\ACLEntry[]|null */
3530
public array $ACLEntries = [];
3631

src/ACL/ACLReplicationStatus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ACLReplicationStatus extends AbstractModel
4848
public Time\Time $LastError;
4949

5050
/** @var array[] */
51-
protected static array $fields = [
51+
protected const FIELDS = [
5252
self::FIELD_LAST_SUCCESS => [
5353
Hydration::FIELD_CALLBACK => Hydration::CALLABLE_HYDRATE_TIME,
5454
],

src/ACL/ACLReplicationStatusResponse.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,14 @@
1818
limitations under the License.
1919
*/
2020

21-
use DCarbone\PHPConsulAPI\AbstractResponse;
22-
use DCarbone\PHPConsulAPI\ErrorContainer;
23-
use DCarbone\PHPConsulAPI\QueryMetaContainer;
21+
use DCarbone\PHPConsulAPI\AbstractValuedQueryResponse;
2422
use DCarbone\PHPConsulAPI\HydratedResponseInterface;
2523

2624
/**
2725
* Class ACLReplicationStatusResponse
2826
*/
29-
class ACLReplicationStatusResponse extends AbstractResponse implements HydratedResponseInterface
27+
class ACLReplicationStatusResponse extends AbstractValuedQueryResponse implements HydratedResponseInterface
3028
{
31-
use QueryMetaContainer;
32-
use ErrorContainer;
33-
3429
/** @var \DCarbone\PHPConsulAPI\ACL\ACLReplicationStatus|null */
3530
public ?ACLReplicationStatus $ACLReplicationStatus = null;
3631

src/ACL/ACLRole.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ACLRole extends AbstractModel
5454
public ?string $Namespace = null;
5555

5656
/** @var array[] */
57-
protected static array $fields = [
57+
protected const FIELDS = [
5858
self::FIELD_POLICIES => [
5959
Hydration::FIELD_TYPE => Hydration::ARRAY,
6060
Hydration::FIELD_CLASS => ACLTokenPolicyLink::class,

src/ACL/ACLToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class ACLToken extends AbstractModel
7878
public ?string $Rules = null;
7979

8080
/** @var array[] */
81-
protected static array $fields = [
81+
protected const FIELDS = [
8282
self::FIELD_POLICIES => [
8383
Hydration::FIELD_TYPE => Hydration::ARRAY,
8484
Hydration::FIELD_CLASS => ACLTokenPolicyLink::class,

0 commit comments

Comments
 (0)