Skip to content

Commit 6027cfb

Browse files
authored
Merge pull request #66 from academe/misc-fixes
Misc fixes
2 parents 6fc770f + 8568d4b commit 6027cfb

37 files changed

+57
-35
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@ atlassian-ide-plugin.xml
3434
# Crashlytics plugin (for Android Studio and IntelliJ)
3535
com_crashlytics_export_strings.xml
3636
crashlytics.properties
37-
crashlytics-build.properties
37+
crashlytics-build.properties
38+
39+
vendor
40+
.phpunit.result.cache
41+
composer.lock

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
language: php
22

33
php:
4-
- 5.5
5-
- 5.6
6-
- 7.0
7-
- 7.1
8-
4+
- 7.4
5+
- 8.0
6+
- 8.1
7+
- 8.2
8+
99
before_script:
1010
- composer self-update
1111
- composer install --no-interaction

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"guzzlehttp/guzzle": "^6.0|^7.0|^8.0"
3131
},
3232
"require-dev": {
33-
"phpunit/phpunit": "^4.8.0"
33+
"phpunit/phpunit": "^9.6",
34+
"squizlabs/php_codesniffer": "^3.7"
3435
},
3536
"autoload": {
3637
"psr-4": {

phpunit.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
convertNoticesToExceptions="true"
88
convertWarningsToExceptions="true"
99
processIsolation="false"
10-
stopOnFailure="false"
11-
syntaxCheck="false">
10+
stopOnFailure="false">
1211
<testsuites>
1312
<testsuite name="SagePay Pi Test Suite">
1413
<directory suffix=".php">./tests/</directory>

src/Request/AbstractInstruction.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function __construct(Endpoint $endpoint, Auth $auth, $transactionId)
3333
* Get the message body data for serializing.
3434
* @return array
3535
*/
36+
#[\ReturnTypeWillChange]
3637
public function jsonSerialize()
3738
{
3839
$body = [];

src/Request/CreateCardIdentifier.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ public function getSecurityCode()
101101
* Replace all card detail characters with asterisks.
102102
* @return array
103103
*/
104+
#[\ReturnTypeWillChange]
104105
public function jsonSerialize()
105106
{
106107
$data = $this->jsonSerializePeek();

src/Request/CreatePayment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ public function withReferrerId($referrerId)
328328
* Get the message body data for serializing.
329329
* @return array
330330
*/
331+
#[\ReturnTypeWillChange]
331332
public function jsonSerialize()
332333
{
333334
// The mandatory fields.

src/Request/CreateRefund.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ protected function getTransactionId()
115115
* Get the message body data for serializing.
116116
* @return array
117117
*/
118+
#[\ReturnTypeWillChange]
118119
public function jsonSerialize()
119120
{
120121
// The mandatory fields.

src/Request/CreateRelease.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public function __construct(Endpoint $endpoint, Auth $auth, $transactionId, Amou
3434
* Get the message body data for serializing.
3535
* @return array
3636
*/
37+
#[\ReturnTypeWillChange]
3738
public function jsonSerialize()
3839
{
3940
$body = parent::jsonSerialize();

src/Request/CreateRepeatPayment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ public function withGiftAid($giftAid)
185185
* Get the message body data for serializing.
186186
* @return array
187187
*/
188+
#[\ReturnTypeWillChange]
188189
public function jsonSerialize()
189190
{
190191
// The mandatory fields.

0 commit comments

Comments
 (0)