Skip to content

Commit

Permalink
Merge pull request #8 from answear/support-symfony-7
Browse files Browse the repository at this point in the history
Support symfony 7
  • Loading branch information
Wiktor6 authored Sep 30, 2024
2 parents 4a46436 + b8b5b70 commit bce66ad
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
"ext-json": "*",
"guzzlehttp/guzzle": "^6.5|^7.9.2",
"psr/log": "^1.1.4",
"symfony/http-kernel": "6.4.*",
"symfony/property-access": "6.4.*",
"symfony/property-info": "6.4.*",
"symfony/serializer": "6.4.*",
"symfony/http-kernel": "^6.4|^7.0",
"symfony/property-access": "^6.4|^7.0",
"symfony/property-info": "^6.4|^7.0",
"symfony/serializer": "^6.4|^7.0",
"webmozart/assert": "^1.11"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.63.2",
"friendsofphp/php-cs-fixer": "^3.64",
"matthiasnoback/symfony-config-test": "^5.2",
"phpro/grumphp": "^2.7.0",
"phpro/grumphp": "^2.8",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-webmozart-assert": "^1.2.10",
"phpunit/phpunit": "^10.5.30",
"phpstan/phpstan-webmozart-assert": "^1.2",
"phpunit/phpunit": "^10.5",
"roave/security-advisories": "dev-master",
"symfony/phpunit-bridge": "6.4.*"
"symfony/phpunit-bridge": "^6.4|^7.0"
},
"autoload": {
"psr-4": {
Expand Down
7 changes: 4 additions & 3 deletions src/Request/GetParcelShops.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@

use Answear\GlsBundle\Enum\CountryCodeEnum;

class GetParcelShops implements RequestInterface
readonly class GetParcelShops implements RequestInterface
{
private const ENDPOINT = 'data/deliveryPoints/';
private const HTTP_METHOD = 'GET';

public function __construct(public CountryCodeEnum $countryCode)
{
public function __construct(
public CountryCodeEnum $countryCode,
) {
}

public function getEndpoint(): string
Expand Down
2 changes: 1 addition & 1 deletion src/Response/DTO/ParcelShop.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Answear\GlsBundle\Enum\FeatureEnum;
use Answear\GlsBundle\Enum\ParcelShopTypeEnum;

class ParcelShop
readonly class ParcelShop
{
/**
* @param Openings[] $openings
Expand Down
2 changes: 1 addition & 1 deletion src/Response/DTO/RawParcelShop.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Answear\GlsBundle\Response\DTO;

class RawParcelShop
readonly class RawParcelShop
{
public function __construct(
public string $id,
Expand Down

0 comments on commit bce66ad

Please sign in to comment.