Skip to content

Commit 0e77d42

Browse files
Merge pull request #104 from Bandwidth/SWI-5809
SWI-5809 Fixing Deprecation Errors for PHP 8.3
2 parents e2fc110 + e3dcd0a commit 0e77d42

File tree

96 files changed

+360
-35
lines changed

Some content is hidden

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

96 files changed

+360
-35
lines changed

README.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,6 @@ PHP Client library for Bandwidth's Phone Number Dashboard (AKA: Dashboard, Iris)
22
=========================================================
33
[![Build Status](https://travis-ci.org/Bandwidth/php-bandwidth-iris.svg?branch=master)](https://travis-ci.org/Bandwidth/php-bandwidth-iris)
44

5-
## Release Notes
6-
7-
| Version | Notes |
8-
|:---|:---|
9-
| 2.0.0 | Fixed incompatibilities with Bandwidth's Dashboard API Create Site function that required breaking changes. Versions less than 2.0.0 are not guaranteed to work with Bandwidth's Dashboard API. |
10-
| 2.0.1 | Added `ActualFocDate` to Portins model |
11-
| 2.0.2 | Fixed HTTP method for `set_tn_options` to `PUT` |
12-
| 2.0.3 | Fixed HTTP request for `set_tn_options` to the correct XML object |
13-
| 2.0.4 | Added `localVanity` to `availableNumbers` |
14-
| 2.0.5 | Added `NewBillingTelephoneNumber` to `Portins` model |
15-
| 2.0.6 | Build `ReportsModel` functionality |
16-
| 2.0.7 | Fixed error handling for Errors fields |
17-
| 2.0.8 | Fixed rate center check |
18-
| 2.1.0 | Added `importTnOrders`, `removeImportedTnOrders`, `inserviceNumbers`, and `importTnChecker` endpoints |
19-
| 2.2.0 | Added `csrs` endpoints |
20-
| 2.3.0 | Added `loas` endpoints for ImportTnOrders |
21-
| 2.4.0 | Added Emergency Calling Notification, Emergeny Notification Group, Emergency Notification Endpoint, and Alternate End User Identity methods |
22-
| 2.5.0 | Added `PortOutPasscode` for TnOption orders |
23-
| 2.5.1 | Fixed grabbing of response header for file uploads |
24-
| 3.0.0 | Updated to guzzle 7. This version no longer supports verisons of PHP less than 7.2. Older versions of this package will still work on PHP versions less than 7.2 |
25-
| 3.1.0 | Added application management |
26-
| 3.2.0 | Update SipPeerTelephoneNumber to enable/disabe SMS |
27-
| 3.3.0 | Added PortOutStatus, ActualFocDate, and SPID to the portout model |
28-
| 3.3.1 | Updated the portins update method to clear the ActualFocDate field |
29-
| 3.3.2 | Updated the portins set_activation_status method use a PUT method |
30-
315
## Supported PHP Versions
326

337
| Version | Support Level |

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

src/LidbModel.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 Lidbs extends RestEntry{
1720

1821
public function __construct($parent) {
@@ -58,6 +61,8 @@ public function get_appendix() {
5861
}
5962
}
6063

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

src/LsrorderModel.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 Lsrorders extends RestEntry{
1720

1821
public function __construct($parent) {
@@ -52,6 +55,8 @@ public function create($data) {
5255
}
5356
}
5457

58+
59+
#[AllowDynamicProperties]
5560
final class Lsrorder extends RestEntry{
5661
use BaseModel;
5762

src/NotesModel.php

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

33
namespace Iris;
44

5+
use AllowDynamicProperties;
6+
57
/**
68
*
79
*/
10+
11+
#[AllowDynamicProperties]
812
class Notes extends RestEntry {
913
public function __construct($parent) {
1014
$this->parent = $parent;
@@ -53,6 +57,8 @@ public function get_appendix() {
5357
* @property string $Description
5458
* @property string $LastDateModifier
5559
*/
60+
61+
#[AllowDynamicProperties]
5662
class Note extends RestEntry {
5763
use BaseModel;
5864

src/Order.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 Orders extends RestEntry{
1720

1821
public function __construct($parent) {
@@ -57,6 +60,8 @@ public function create($data, $save = true) {
5760
}
5861
}
5962

63+
64+
#[AllowDynamicProperties]
6065
final class Order extends RestEntry{
6166
use BaseModel;
6267

src/PortinsModel.php

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

1111
namespace Iris;
1212

13+
use AllowDynamicProperties;
14+
15+
#[AllowDynamicProperties]
1316
class Portins extends RestEntry {
1417
public function __construct($account) {
1518
$this->parent = $account;
@@ -67,6 +70,8 @@ public function get_appendix() {
6770
}
6871
}
6972

73+
74+
#[AllowDynamicProperties]
7075
class Portin extends RestEntry {
7176
use BaseModel;
7277

src/PortoutModel.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 Portouts extends RestEntry{
1720

1821
public function __construct($parent) {
@@ -65,6 +68,8 @@ public function get_appendix() {
6568

6669
}
6770

71+
72+
#[AllowDynamicProperties]
6873
class Portout extends RestEntry {
6974
use BaseModel;
7075

src/RateCenter.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 RateCenter extends RestEntry{
69
public function __construct($client)
710
{

src/ReportsInstanceModel.php

Lines changed: 7 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 InstanceParameters {
1720
use BaseModel;
1821

@@ -24,6 +27,8 @@ public function __construct($data) {
2427
}
2528
}
2629

30+
31+
#[AllowDynamicProperties]
2732
final class InstanceParameter {
2833
use BaseModel;
2934

@@ -36,6 +41,8 @@ public function __construct($data) {
3641
}
3742
}
3843

44+
45+
#[AllowDynamicProperties]
3946
final class ReportInstance extends RestEntry{
4047
use BaseModel;
4148

0 commit comments

Comments
 (0)