Skip to content

Commit

Permalink
Merge pull request #8 from SilverFire/php81
Browse files Browse the repository at this point in the history
Upgrade to support PHP 8.1
  • Loading branch information
dercoder authored Apr 18, 2022
2 parents f948d83 + 547d4bd commit 94d4281
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ php:
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1

before_script:
- composer install -n --dev --prefer-source
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
}
},
"require": {
"php": "^7.0|^7.1|^7.2|^7.3|^7.4",
"php": "^7.0|^8.0",
"ext-simplexml": "*",
"ext-dom": "*",
"omnipay/common": "^3.0"
"omnipay/common": "^3.2"
},
"require-dev": {
"omnipay/tests": "^3.0",
"omnipay/tests": "^4.1",
"satooshi/php-coveralls": "1.0.0",
"guzzlehttp/guzzle": "^6.5.5",
"squizlabs/php_codesniffer": "3.*"
Expand Down
3 changes: 3 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">
<php>
<ini name="error_reporting" value="E_ALL &amp; ~E_DEPRECATED"/>
</php>
<testsuites>
<testsuite name="WebMoney Test Suite">
<directory>./tests/</directory>
Expand Down
2 changes: 1 addition & 1 deletion src/Message/PayoutRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public function getData()
/**
* @return Client
*/
private function getHttpClient()
protected function getHttpClient()
{
return new Client($this->endpoint);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/GatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class GatewayTest extends GatewayTestCase
public $sslFile;
public $sslKey;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Message/CompletePurchaseRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class CompletePurchaseRequestTest extends TestCase
{
private $request;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Message/CompletePurchaseResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class CompletePurchaseResponseTest extends TestCase
{
private $request;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Message/FetchTransactionRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class FetchTransactionRequestTest extends TestCase
{
private $request;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Message/FetchTransactionResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class FetchTransactionResponseTest extends TestCase

private $request;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
4 changes: 2 additions & 2 deletions tests/Message/PayoutRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class PayoutRequestTest extends TestCase
{
private $request;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand All @@ -28,7 +28,7 @@ public function setUp()
$httpClient->addSubscriber($mockPlugin);

$this->request = $this->getMockBuilder(PayoutRequest::class)
->setMethods(['getHttpClient'])
->onlyMethods(['getHttpClient'])
->setConstructorArgs([$this->getHttpClient(), $this->getHttpRequest()])
->getMock();

Expand Down
2 changes: 1 addition & 1 deletion tests/Message/PayoutResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PayoutResponseTest extends TestCase

private $request;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Message/PurchaseRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PurchaseRequestTest extends TestCase
{
private $request;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Message/PurchaseResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class PurchaseResponseTest extends TestCase
{
private $request;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down

0 comments on commit 94d4281

Please sign in to comment.