Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
PHPUnit:
strategy:
matrix:
php: [ 8.3, 8.4]
php: [ 8.5, 8.4]
prefer-lowest: [0, 1]
runs-on: ubuntu-latest
name: PHP ${{ matrix.php }} - ${{ matrix.prefer-lowest == 1 && 'Lowest' || 'Latest' }} Dependencies
Expand Down Expand Up @@ -47,4 +47,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Success
run: echo "Ready to merge!"
run: echo "Ready to merge!"
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

},
"require": {
"php": "^8.3",
"php": "^8.4",
"ext-curl": "*",
"ext-json": "*",
"grisaia/time": "^0.2.0",
Expand Down
1 change: 1 addition & 0 deletions src/DataAdapters/Entities/Counterparty/Counterparty.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
{
use RefTrait;
use DescriptionTrait;

public function getFirstName(): string
{
return $this->getField('FirstName')->string();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
{
use RefTrait;
use DescriptionTrait;

public function getAreaCenterRef(): string
{
return $this->getField('AreasCenter')->string();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
{
use RefTrait;
use DescriptionTrait;

public function getAreaCenterRef(): string
{
return $this->getField('AreasCenter')->string();
Expand Down
1 change: 1 addition & 0 deletions src/DataAdapters/Enums/CounterpartyPersonType.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ enum CounterpartyPersonType: string
case Sender = 'Sender';
case Recipient = 'Recipient';
case ThirdPerson = 'ThirdPerson';

public function toString(): string
{
return $this->value;
Expand Down
1 change: 1 addition & 0 deletions src/DataAdapters/Enums/CounterpartyType.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ enum CounterpartyType: string
{
case PrivatePerson = 'PrivatePerson';
case Organization = 'Organization';

public function toString(): string
{
return $this->value;
Expand Down
1 change: 1 addition & 0 deletions src/DataAdapters/Enums/DocumentStatusCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ enum DocumentStatusCode: int
case ReceivedCreatedReturnDelivery = 106;
case NotDeliveredNoReceiver = 111;
case DeliveryTimeChanged = 112;

public function isOneOf(DocumentStatusCode ...$codes): bool
{
return in_array($this, $codes, true);
Expand Down
4 changes: 0 additions & 4 deletions src/Exception/QueryFailed/BadBodyException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@

final class BadBodyException extends QueryFailedException
{
public function __construct(string $msg)
{
parent::__construct($msg);
}
}
4 changes: 0 additions & 4 deletions src/Exception/QueryFailed/CurlException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@

final class CurlException extends QueryFailedException
{
public function __construct(string $msg, int $code)
{
parent::__construct($msg, $code);
}
}
4 changes: 0 additions & 4 deletions src/Exception/QueryFailed/QueryFailedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,4 @@

abstract class QueryFailedException extends Exception
{
public function __construct(string $message, int $code = 0, ?Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}
}
Loading