Skip to content

Commit 6de16bc

Browse files
authored
VILA-967 update to shopware 6 7 (#79)
* prepare plugin for sw 6-7 * update npm packages * run linter, update pipeline * run linter, update pipeline * update changelog * update changelog * update compose.yaml * fix json
1 parent 8d8afa9 commit 6de16bc

19 files changed

Lines changed: 34 additions & 31 deletions

.github/workflows/linting.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77

88
strategy:
99
matrix:
10-
php-version: [ 8.2, 8.3 ]
10+
php-version: [ 8.2, 8.3 , 8.4]
1111

1212
steps:
1313
- name: Set up PHP
@@ -31,15 +31,15 @@ jobs:
3131
run: 'composer install --prefer-dist --no-ansi --no-interaction --no-progress --optimize-autoloader'
3232

3333
- name: Run PHP CS Fixer
34-
run: './vendor/bin/php-cs-fixer check'
34+
run: 'PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer check'
3535

3636
phpstan:
3737
name: PHPStan
3838
runs-on: ubuntu-latest
3939

4040
strategy:
4141
matrix:
42-
php-version: [ 8.2, 8.3 ]
42+
php-version: [ 8.2, 8.3, 8.4 ]
4343
composer-strategy: [ lowest, stable ]
4444

4545
steps:

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [3.2.0] - 2025-07-11
8+
### Added
9+
- Added support for PHP 8.4
10+
- Added support for Shopware 6.7
11+
712
## [3.1.0] - 2025-04-01
813
### Changed
914
- Allow to use FQCN in fixture name filtering
@@ -180,6 +185,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
180185
- `getNotSpecifiedSalutationId`
181186
- `getGermanCountryId`
182187

188+
[4.0.0]: https://github.com/basecom/FixturesPlugin/compare/3.1.0...4.0.0
183189
[3.1.0]: https://github.com/basecom/FixturesPlugin/compare/3.0.0...3.1.0
184190
[3.0.0]: https://github.com/basecom/FixturesPlugin/compare/2.4.0...3.0.0
185191
[2.4.0]: https://github.com/basecom/FixturesPlugin/compare/2.3.0...2.4.0

docker-compose.yml renamed to compose.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
version: "3"
2-
31
services:
42
shopware:
5-
image: 'dockware/dev:6.6.1.1'
3+
image: 'dockware/dev:6.7.0.0'
64
ports:
75
- "80:80" # Webserver / Apache
86
- "3306:3306" # MySQL database
@@ -11,7 +9,7 @@ services:
119
- "9999:9999" # Storefront watcher (background)
1210
- "9998:9998" # Storefront watcher (background)
1311
environment:
14-
- 'XDEBUG_ENABLED=1'
12+
- 'XDEBUG_ENABLED=0'
1513
- 'PHP_VERSION=8.3'
1614
volumes:
1715
- "./:/var/www/html/custom/static-plugins/plugin"

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@
3535
}
3636
},
3737
"require": {
38-
"php": "^8.2 || ^8.3",
39-
"shopware/core": "6.5.*|6.6.*",
40-
"shopware/administration": "6.5.*|6.6.*",
41-
"shopware/storefront": "6.5.*|6.6.*",
38+
"php": "^8.2 || ^8.3 ||^8.4",
39+
"shopware/core": "6.5.*|6.6.*|6.7.*",
40+
"shopware/administration": "6.5.*|6.6.*|6.7.*",
41+
"shopware/storefront": "6.5.*|6.6.*|6.7.*",
4242
"spatie/once": "^3.1"
4343
},
4444
"require-dev": {
45-
"friendsofphp/php-cs-fixer": "3.59.3",
46-
"phpstan/phpstan": "^1.10"
45+
"friendsofphp/php-cs-fixer": "3.75.0",
46+
"phpstan/phpstan": "^2.1.17"
4747
},
4848
"config": {
4949
"allow-plugins": {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"private": true,
44
"type": "module",
55
"devDependencies": {
6-
"prettier": "^3.2.5",
7-
"vitepress": "^1.2.3"
6+
"prettier": "^3.6.2",
7+
"vitepress": "^1.6.3"
88
},
99
"scripts": {
1010
"docs:dev": "vitepress dev docs",

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ parameters:
99
# This is ignored until we drop support for Shopware 6.5
1010
- message: '#Shopware\\Core\\Framework\\DataAbstractionLayer\\EntityRepository is not generic\.#'
1111
reportUnmatched: false
12+
- '#Trait Basecom\\FixturePlugin\\FixtureTrait is used zero times and is not analysed#'

src/Command/LoadFixtureGroupCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
3535
$now = new \DateTimeImmutable();
3636
$io = new SymfonyStyle($input, $output);
3737

38-
/** @var string $groupNameInput */
3938
$groupNameInput = $input->getArgument('groupName');
4039
$dry = (bool) ($input->getOption('dry') ?? false);
4140
$vendor = (bool) ($input->getOption('vendor') ?? false);

src/Command/LoadSingleFixtureCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
3737
$now = new \DateTimeImmutable();
3838
$io = new SymfonyStyle($input, $output);
3939

40-
/** @var string $fixtureName */
4140
$fixtureName = $input->getArgument('fixtureName');
4241
$dry = (bool) ($input->getOption('dry') ?? false);
4342
$withDependencies = (bool) ($input->getOption('with-dependencies') ?? false);

src/FixtureLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private function checkDependenciesAreInSameGroup(
147147

148148
foreach ($dependencies as $dependency) {
149149
if (!\in_array(strtolower($dependency), $inGroup, true)) {
150-
$io?->error(sprintf("Dependency '%s' of fixture '%s' is not in group '%s'", $dependency, $fixture::class, $groupName));
150+
$io?->error(\sprintf("Dependency '%s' of fixture '%s' is not in group '%s'", $dependency, $fixture::class, $groupName));
151151

152152
return false;
153153
}

src/Utils/CategoryUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function getRootCategory(): ?CategoryEntity
4141
->addFilter(new EqualsFilter('level', 1))
4242
->setLimit(1);
4343

44-
$criteria->setTitle(sprintf('%s::%s()', __CLASS__, __FUNCTION__));
44+
$criteria->setTitle(\sprintf('%s::%s()', __CLASS__, __FUNCTION__));
4545

4646
$category = $this->categoryRepository
4747
->search($criteria, Context::createDefaultContext())

0 commit comments

Comments
 (0)