Skip to content

Commit c4fae5d

Browse files
authored
min php 8.4 (#27)
* min php 8.4 * Update PHP version in CI workflow * fix: rector
1 parent fcfe963 commit c4fae5d

11 files changed

Lines changed: 9 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
PHPUnit:
1111
strategy:
1212
matrix:
13-
php: [ 8.3, 8.4]
13+
php: [ 8.5, 8.4]
1414
prefer-lowest: [0, 1]
1515
runs-on: ubuntu-latest
1616
name: PHP ${{ matrix.php }} - ${{ matrix.prefer-lowest == 1 && 'Lowest' || 'Latest' }} Dependencies
@@ -47,4 +47,4 @@ jobs:
4747
runs-on: ubuntu-latest
4848
steps:
4949
- name: Success
50-
run: echo "Ready to merge!"
50+
run: echo "Ready to merge!"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
},
4848
"require": {
49-
"php": "^8.3",
49+
"php": "^8.4",
5050
"ext-curl": "*",
5151
"ext-json": "*",
5252
"grisaia/time": "^0.2.0",

src/DataAdapters/Entities/Counterparty/Counterparty.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
{
1414
use RefTrait;
1515
use DescriptionTrait;
16+
1617
public function getFirstName(): string
1718
{
1819
return $this->getField('FirstName')->string();

src/DataAdapters/Entities/Location/SettlementAreaListItem.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
{
1313
use RefTrait;
1414
use DescriptionTrait;
15+
1516
public function getAreaCenterRef(): string
1617
{
1718
return $this->getField('AreasCenter')->string();

src/DataAdapters/Entities/Location/SettlementRegionItem.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
{
1313
use RefTrait;
1414
use DescriptionTrait;
15+
1516
public function getAreaCenterRef(): string
1617
{
1718
return $this->getField('AreasCenter')->string();

src/DataAdapters/Enums/CounterpartyPersonType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ enum CounterpartyPersonType: string
1515
case Sender = 'Sender';
1616
case Recipient = 'Recipient';
1717
case ThirdPerson = 'ThirdPerson';
18+
1819
public function toString(): string
1920
{
2021
return $this->value;

src/DataAdapters/Enums/CounterpartyType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ enum CounterpartyType: string
1414
{
1515
case PrivatePerson = 'PrivatePerson';
1616
case Organization = 'Organization';
17+
1718
public function toString(): string
1819
{
1920
return $this->value;

src/DataAdapters/Enums/DocumentStatusCode.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ enum DocumentStatusCode: int
2929
case ReceivedCreatedReturnDelivery = 106;
3030
case NotDeliveredNoReceiver = 111;
3131
case DeliveryTimeChanged = 112;
32+
3233
public function isOneOf(DocumentStatusCode ...$codes): bool
3334
{
3435
return in_array($this, $codes, true);

src/Exception/QueryFailed/BadBodyException.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@
66

77
final class BadBodyException extends QueryFailedException
88
{
9-
public function __construct(string $msg)
10-
{
11-
parent::__construct($msg);
12-
}
139
}

src/Exception/QueryFailed/CurlException.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@
66

77
final class CurlException extends QueryFailedException
88
{
9-
public function __construct(string $msg, int $code)
10-
{
11-
parent::__construct($msg, $code);
12-
}
139
}

0 commit comments

Comments
 (0)