Skip to content

Commit 1c8de32

Browse files
author
Romain TOUZE
committed
feat: update dependencies to hangle php 8.1
1 parent 6f197f7 commit 1c8de32

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.php_cs.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
->ignoreDotFiles(true)
1414
->ignoreVCS(true);
1515

16-
return \PhpCsFixer\Config::create()
16+
return (new \PhpCsFixer\Config())
1717
->setRules([
1818
'@PSR2' => true,
1919
'array_syntax' => ['syntax' => 'short'],
20-
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
20+
'ordered_imports' => ['sort_algorithm' => 'alpha'],
2121
'no_unused_imports' => true,
2222
])
2323
->setFinder($finder);

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"ext-json": "*"
2929
},
3030
"require-dev": {
31-
"phpunit/phpunit": "^8.4",
31+
"phpunit/phpunit": "^9.5",
3232
"nesbot/carbon": "^2.27",
33-
"friendsofphp/php-cs-fixer": "^2.16"
33+
"friendsofphp/php-cs-fixer": "^3.13"
3434
},
3535
"scripts": {
3636
"test": "@php vendor/bin/phpunit --colors=always",

src/Exceptions/RecoveryException.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
class RecoveryException extends \Exception
66
{
7-
87
/**
98
* @param string $total
109
* @param string $toRecover

src/Responses/PurchaseResponse.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public function toArray(): array
325325

326326
if (isset($this->authorisationRejectReason)) {
327327
$fields['motifrefusautorisation'] = $this->authorisationRejectReason;
328-
}
328+
}
329329

330330
if (isset($this->commitmentAmount)) {
331331
$fields['montantech'] = $this->commitmentAmount;

0 commit comments

Comments
 (0)