Skip to content

Commit

Permalink
Merge pull request #10 from answear/bump-php-cs-fixer
Browse files Browse the repository at this point in the history
Bump php-cs-fixer
  • Loading branch information
lukasz-falda authored Nov 4, 2021
2 parents 6118213 + d525a37 commit 42db565
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/vendor/
\.php_cs\.cache
\.php-cs-fixer\.cache
.phpunit.result.cache
composer.lock
/.idea
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"webmozart/assert": "^1.3"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.19",
"friendsofphp/php-cs-fixer": "^3.2",
"matthiasnoback/symfony-config-test": "^4.2",
"phpro/grumphp": "^1.4.0",
"phpstan/phpstan": "^0.12.97",
"phpstan/phpstan-webmozart-assert": "^0.12.16",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-webmozart-assert": "^1.0",
"phpunit/phpunit": "^9.5",
"roave/security-advisories": "dev-master",
"symfony/phpunit-bridge": "^5.3"
Expand Down
2 changes: 1 addition & 1 deletion src/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(string $environment, string $apiKey)

public function getUrl(): string
{
return EnvironmentEnum::prod()->is($this->environment) ? static::URL : static::TEST_URL;
return EnvironmentEnum::prod()->is($this->environment) ? self::URL : self::TEST_URL;
}

public function getEnvironment(): EnvironmentEnum
Expand Down
10 changes: 10 additions & 0 deletions src/Response/DTO/ParcelShop.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,14 @@ public function setAddress(Address $address): void
{
$this->address = $address;
}

public function setGeoLat(?float $geoLat): void
{
$this->geoLat = $geoLat;
}

public function setGeoLong(?float $geoLong): void
{
$this->geoLong = $geoLong;
}
}
4 changes: 2 additions & 2 deletions src/Serializer/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function serialize(RequestInterface $request): string
{
return $this->getSerializer()->serialize(
$request,
static::FORMAT,
self::FORMAT,
[Normalizer\AbstractObjectNormalizer::SKIP_NULL_VALUES => true]
);
}
Expand All @@ -32,7 +32,7 @@ public function decodeResponse(string $class, ResponseInterface $response): obje
return $this->getSerializer()->deserialize(
$response->getBody()->getContents(),
$class,
static::FORMAT
self::FORMAT
);
}

Expand Down

0 comments on commit 42db565

Please sign in to comment.