Skip to content

Commit 8d684d5

Browse files
committed
php8
1 parent 56643ab commit 8d684d5

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
],
4848
"require": {
4949
"php": "^7.1 || ^8.0",
50-
"moneyphp/money": "^3.3"
50+
"moneyphp/money": "~3.1.0"
5151
},
5252
"require-dev": {
5353
"hiqdev/omnipay-paypal": "2.0.x-dev",

Diff for: src/response/CompletePurchaseResponseInterface.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace hiqdev\php\merchant\response;
55

6-
use DateTime;
6+
use DateTimeInterface;
77
use Money\Currency;
88
use Money\Money;
99

@@ -22,7 +22,7 @@ public function getAmount(): Money;
2222

2323
public function getFee(): Money;
2424

25-
public function getTime(): DateTime;
25+
public function getTime(): DateTimeInterface;
2626

2727
public function getTransactionReference(): string;
2828

Diff for: tests/_bootstrap.php

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
* @license BSD-3-Clause
88
* @copyright Copyright (c) 2015-2018, HiQDev (http://hiqdev.com/)
99
*/
10-
error_reporting(E_ALL & ~E_NOTICE);
10+
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED);
1111

12-
require_once __DIR__ . '/../vendor/autoload.php';
12+
$autoload = __DIR__ . '/../vendor/autoload.php';
13+
if (!file_exists($autoload)) {
14+
$autoload = __DIR__ . '/../../../autoload.php';
15+
}
16+
17+
require_once $autoload;

Diff for: tests/unit/factories/OmnipayFactoryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class OmnipayFactoryTest extends TestCase
2424
*/
2525
protected $factory;
2626

27-
protected function setUp()
27+
protected function setUp(): void
2828
{
2929
parent::setUp();
3030

Diff for: tests/unit/merchants/AbstractMerchantTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ abstract class AbstractMerchantTest extends TestCase
3838
*/
3939
protected $httpClient;
4040

41-
public function setUp()
41+
public function setUp(): void
4242
{
4343
parent::setUp();
4444

0 commit comments

Comments
 (0)