Skip to content

Commit 48f3f09

Browse files
SWI-5809 PHP 8.3 updates for deprecated dynamic properties
1 parent e2fc110 commit 48f3f09

File tree

95 files changed

+359
-8
lines changed

Some content is hidden

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

95 files changed

+359
-8
lines changed

core/Client.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66

77
namespace Iris;
88

9+
use AllowDynamicProperties;
910
use GuzzleHttp\Exception\ClientException;
1011
use SimpleXMLElement;
1112

13+
#[AllowDynamicProperties]
1214
class ResponseException extends \Exception
1315
{
1416

1517
}
1618

19+
#[AllowDynamicProperties]
1720
abstract class iClient
1821
{
1922
abstract function get($url, $options);
@@ -122,6 +125,8 @@ protected function array2xml($arr, &$xml)
122125
}
123126
}
124127

128+
129+
#[AllowDynamicProperties]
125130
final class Client extends iClient
126131
{
127132

src/Account.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace Iris;
44

5+
use AllowDynamicProperties;
6+
7+
#[AllowDynamicProperties]
58
class Account extends RestEntry {
69
public function __construct($account_id, $client=Null, $namespace='accounts')
710
{

src/AddressModel.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace Iris;
44

5+
use AllowDynamicProperties;
6+
7+
#[AllowDynamicProperties]
58
class Address {
69
use BaseModel;
710

src/BaseModel.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
<?php
22

33
namespace Iris;
4+
use AllowDynamicProperties;
45

6+
#[AllowDynamicProperties]
57
class FieldRequiredException extends \Exception {
68
public function __construct($key) {
79
$this->key = $key;
810
parent::__construct("Field {$this->key} is required.");
911
}
1012
}
1113

14+
15+
#[AllowDynamicProperties]
1216
class FieldValidateInArrayException extends \Exception {
1317
public function __construct($key, $arr) {
1418
$this->key = $key;
@@ -17,6 +21,8 @@ public function __construct($key, $arr) {
1721
}
1822
}
1923

24+
25+
#[AllowDynamicProperties]
2026
class FieldNotExistsException extends \Exception {
2127
public function __construct($key) {
2228
$this->key = $key;

src/BillingReports.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace Iris;
99

10+
use AllowDynamicProperties;
11+
12+
#[AllowDynamicProperties]
1013
class BillingReports extends RestEntry
1114
{
1215
public function __construct($parent)
@@ -68,6 +71,7 @@ public function request($data)
6871
}
6972
}
7073

74+
#[AllowDynamicProperties]
7175
class BillingReport extends RestEntry
7276
{
7377
use BaseModel;

src/CityModel.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace Iris;
44

5+
use AllowDynamicProperties;
6+
7+
#[AllowDynamicProperties]
58
final class Cities extends RestEntry{
69
public function __construct($client)
710
{

src/CoveredRateCenter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace Iris;
44

5+
use AllowDynamicProperties;
6+
7+
#[AllowDynamicProperties]
58
final class CoveredRateCenters extends RestEntry{
69
public function __construct($client)
710
{
@@ -41,6 +44,7 @@ public function get_relative_namespace() {
4144
}
4245
}
4346

47+
#[AllowDynamicProperties]
4448
final class CoveredRateCenter extends RestEntry{
4549
use BaseModel;
4650

src/DisconnectsModel.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace Iris;
99

10+
use AllowDynamicProperties;
11+
12+
#[AllowDynamicProperties]
1013
class Disconnects extends RestEntry{
1114
public function __construct($parent) {
1215
$this->parent = $parent;
@@ -61,6 +64,7 @@ public function get_appendix() {
6164
}
6265

6366

67+
#[AllowDynamicProperties]
6468
class Disconnect extends RestEntry {
6569
use BaseModel;
6670

src/DldaModel.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
namespace Iris;
1515

16+
use AllowDynamicProperties;
17+
18+
#[AllowDynamicProperties]
1619
final class Dldas extends RestEntry{
1720

1821
public function __construct($parent) {
@@ -58,6 +61,8 @@ public function create($data, $save = true) {
5861
}
5962
}
6063

64+
65+
#[AllowDynamicProperties]
6166
final class Dlda extends RestEntry{
6267
use BaseModel;
6368

src/HostsModel.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace Iris;
44

5+
use AllowDynamicProperties;
6+
7+
#[AllowDynamicProperties]
58
class Hosts {
69
use BaseModel;
710

@@ -15,6 +18,8 @@ public function __construct($data) {
1518
}
1619
}
1720

21+
22+
#[AllowDynamicProperties]
1823
class Host {
1924
use BaseModel;
2025

0 commit comments

Comments
 (0)