Skip to content

Commit 4b46fbe

Browse files
authored
Changes for v2.0.4 (#132)
* Add Accept-Encoding gzip,deflate to RequestHandler #131 * Test PHP v7.2 #130 * Declare arrays to remove warning on non-countable types in PHP 7.2 - http://php.net/manual/en/migration72.incompatible.php#migration72.incompatible.warn-on-non-countable-types * Add ext-mbstring requirement to composer.json * Bump User-Agent to 2.0.4
1 parent 496a9cb commit 4b46fbe

31 files changed

+44
-49
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ language: php
33
php:
44
- 7.0
55
- 7.1
6+
- 7.2
67

78
before_script:
89
- composer self-update

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
],
1212
"require": {
1313
"php": ">=7.0",
14+
"ext-mbstring": "*",
1415
"guzzlehttp/guzzle": "^6.2.3",
1516
"ramsey/uuid": "^3.6.1",
1617
"psr/log": "~1.0"

src/Intacct/Functions/AccountsPayable/AbstractApAdjustment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ abstract class AbstractApAdjustment extends AbstractFunction
7878
protected $adjustmentNumber;
7979

8080
/** @var AbstractApAdjustmentLine[] */
81-
protected $lines;
81+
protected $lines = [];
8282

8383
/**
8484
* Get record number

src/Intacct/Functions/AccountsPayable/AbstractApPaymentRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ abstract class AbstractApPaymentRequest extends AbstractFunction
8484
protected $notificationContactName;
8585

8686
/** @var ApPaymentRequestItem[] */
87-
protected $applyToTransactions;
87+
protected $applyToTransactions = [];
8888

8989
/**
9090
* Get record number

src/Intacct/Functions/AccountsPayable/AbstractBill.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ abstract class AbstractBill extends AbstractFunction
9393
protected $attachmentsId;
9494

9595
/** @var AbstractBillLine[] */
96-
protected $lines;
96+
protected $lines = [];
9797

9898
/**
9999
* Get record number

src/Intacct/Functions/AccountsPayable/AbstractVendor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ abstract class AbstractVendor extends AbstractFunction
227227
protected $restrictionType;
228228

229229
/** @var array */
230-
protected $restrictedLocations;
230+
protected $restrictedLocations = [];
231231

232232
/** @var array */
233-
protected $restrictedDepartments;
233+
protected $restrictedDepartments = [];
234234

235235
/**
236236
* Get vendor ID

src/Intacct/Functions/AccountsReceivable/AbstractArAdjustment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ abstract class AbstractArAdjustment extends AbstractFunction
7474
protected $adjustmentNumber;
7575

7676
/** @var AbstractArAdjustmentLine[] */
77-
protected $lines;
77+
protected $lines = [];
7878

7979
/**
8080
* Get record number

src/Intacct/Functions/AccountsReceivable/AbstractArPayment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ abstract class AbstractArPayment extends AbstractFunction
110110
protected $referenceNumber;
111111

112112
/** @var ArPaymentItem[] */
113-
protected $applyToTransactions;
113+
protected $applyToTransactions = [];
114114

115115
/**
116116
* Get record number

src/Intacct/Functions/AccountsReceivable/AbstractCustomer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ abstract class AbstractCustomer extends AbstractFunction
215215
protected $restrictionType;
216216

217217
/** @var array */
218-
protected $restrictedLocations;
218+
protected $restrictedLocations = [];
219219

220220
/** @var array */
221-
protected $restrictedDepartments;
221+
protected $restrictedDepartments = [];
222222

223223
/**
224224
* Get customer ID

src/Intacct/Functions/AccountsReceivable/AbstractInvoice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ abstract class AbstractInvoice extends AbstractFunction
9393
protected $attachmentsId;
9494

9595
/** @var AbstractInvoiceLine[] */
96-
protected $lines;
96+
protected $lines = [];
9797

9898
/**
9999
* Get record number

0 commit comments

Comments
 (0)