-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
14 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
parameters: | ||
reportUnmatchedIgnoredErrors: false | ||
checkMissingIterableValueType: false | ||
level: 8 | ||
|
||
excludes_analyse: | ||
paths: | ||
- 'src' | ||
|
||
excludePaths: | ||
# Makes PHPStan crash | ||
- 'src/DependencyInjection/Configuration.php' | ||
|
||
# Test dependencies | ||
- 'tests/Application/*' | ||
|
||
# ECS Fixer dependency | ||
- 'src/Fixer' | ||
|
||
ignoreErrors: | ||
- '/Parameter #1 \$configuration of method Symfony\\Component\\DependencyInjection\\Extension\\Extension::processConfiguration\(\) expects Symfony\\Component\\Config\\Definition\\ConfigurationInterface, Symfony\\Component\\Config\\Definition\\ConfigurationInterface\|null given\./' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,11 +19,9 @@ final class WebClient implements WebClientInterface | |
{ | ||
public const DATE_FORMAT = 'Y-m-d'; | ||
|
||
/** @var ShippingGatewayInterface */ | ||
private $shippingGateway; | ||
private ShippingGatewayInterface $shippingGateway; | ||
|
||
/** @var ShipmentInterface */ | ||
private $shipment; | ||
private ShipmentInterface $shipment; | ||
|
||
public function setShippingGateway(ShippingGatewayInterface $shippingGateway): void | ||
{ | ||
|
@@ -123,14 +121,6 @@ public function getPickupAddress(): array | |
{ | ||
return [ | ||
'fid' => $this->getShippingGatewayConfig('id'), | ||
// 'name' => 'NAME', | ||
// 'company' => 'COMPANY', | ||
// 'address' => 'ADDRESS', | ||
// 'city' => 'CITY', | ||
// 'postalCode' => '85132', | ||
// 'countryCode' => 'PL', | ||
// 'email'=> '[email protected]', | ||
// 'phone' => '777888999', | ||
]; | ||
} | ||
|
||
|
@@ -214,8 +204,7 @@ private function resolveWeekend(\DateTime $date): \DateTime | |
return $date; | ||
} | ||
|
||
/** @return mixed */ | ||
private function getShippingGatewayConfig(string $config) | ||
private function getShippingGatewayConfig(string $config): mixed | ||
{ | ||
return $this->shippingGateway->getConfigValue($config); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters