-
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.
Merge pull request #7 from BitBagCommerce/bump-sylius-version
OP-172 Add support for Sylius 1.12 and Symfony 6
- Loading branch information
Showing
59 changed files
with
4,891 additions
and
5,639 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 |
---|---|---|
|
@@ -18,20 +18,12 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ["8.0", "7.4"] | ||
symfony: ["^4.4", "^5.2"] | ||
sylius: ["~1.9.0", "~1.10.0", "~1.11.0"] | ||
node: ["10.x"] | ||
php: ["8.1", "8.2"] | ||
symfony: ["^5.4", "^6.0"] | ||
sylius: ["~1.12.0"] | ||
node: ["14.x"] | ||
mysql: ["8.0"] | ||
|
||
exclude: | ||
- sylius: ~1.9.0 | ||
php: 8.0 | ||
|
||
- sylius: ~1.11.0 | ||
php: 7.4 | ||
|
||
|
||
env: | ||
APP_ENV: test | ||
DATABASE_URL: "mysql://root:[email protected]/sylius?serverVersion=${{ matrix.mysql }}" | ||
|
@@ -161,7 +153,7 @@ jobs: | |
|
||
- | ||
name: Run PHPStan | ||
run: vendor/bin/phpstan analyse -c phpstan.neon -l max src/ | ||
run: vendor/bin/phpstan analyse | ||
|
||
- | ||
name: Run PHPSpec | ||
|
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 |
---|---|---|
|
@@ -21,22 +21,12 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ["8.0", "7.4"] | ||
symfony: ["^4.4", "^5.2"] | ||
sylius: ["~1.9.6", "~1.10.0", "~1.11.0"] | ||
php: ["8.1", "8.2"] | ||
symfony: ["^5.4", "^6.0"] | ||
sylius: ["~1.12.0"] | ||
node: ["14.x"] | ||
mysql: ["8.0"] | ||
|
||
exclude: | ||
- sylius: ~1.9.6 | ||
php: 8.0 | ||
|
||
- sylius: ~1.10.0 | ||
symfony: 4.4 | ||
|
||
- sylius: ~1.11.0 | ||
php: 7.4 | ||
|
||
env: | ||
APP_ENV: test | ||
DATABASE_URL: "mysql://root:[email protected]/sylius?serverVersion=${{ matrix.mysql }}" | ||
|
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 |
---|---|---|
|
@@ -9,3 +9,5 @@ | |
!/etc/build/.gitkeep | ||
|
||
/tests/Application/shipping_labels/* | ||
|
||
composer.lock |
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
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
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
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
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,2 +1,3 @@ | ||
imports: | ||
- { resource: "@BitBagSyliusShippingExportPlugin/Resources/config/config.yml" } | ||
- { resource: "@DpdPlShippingExportPlugin/Resources/config/services.yml" } |
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
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
Oops, something went wrong.