Skip to content

fix: restore compatibility with early Shopware 6.6 APIs - #531

Merged
shyim merged 2 commits into
mainfrom
fix/shopware-66-compatibility
Nov 15, 2026
Merged

shyim merged 2 commits into
mainfrom
fix/shopware-66-compatibility

Conversation

@shyim

@shyim shyim commented Nov 15, 2026

Copy link
Copy Markdown
Member

Summary

Addresses the seven compatibility errors in the lowest-version validation job, observed on #529. These errors concern existing APIs outside the Redis purge change.

  • Remove an incompatible internal Shopware team Package attribute.
  • Preserve modern shop-ID reset and verification exceptions, with early-6.6 fallbacks matching core behavior.
  • Match early-6.6 Twig cache hashes when Hasher is unavailable.
  • Use the older OpenSearch transport API only when Client::request() is absent. Deprecation annotations apply only to that guarded legacy path.
  • Handle scheduler providers that are not Stringable and use a version-independent daily cleanup interval.
  • Add focused compatibility/security regression tests and update app-controller integration expectations.

Verification

  • Full lowest-version extension validation passed against Shopware 6.6.0.0: builtin, ESLint, PHPStan and stylelint; storefront Twig check skipped because there are no storefront templates.
  • Final PHPStan validation passed against both Shopware 6.6.0.0 and 6.7.14.2.
  • Focused PHPUnit tests using the resolved baseline dependencies passed on PHP 8.4.24: 14 tests / 49 assertions on 6.6.0.0 (upstream deprecation notices), and 14 tests / 47 assertions on 6.7.14.2 (clean).
  • PHP-CS-Fixer dry run, PHP syntax and git diff --check passed.

Remaining validation

The full database-backed Shopware integration suite was not run locally. Existing shop-ID reset integration expectations were updated but not executed; focused tests verify unverified/malformed-scope requests remain denied. No production services were accessed.

@shyim
shyim marked this pull request as ready for review November 15, 2026 01:39
@greptile-apps

greptile-apps Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no new actionable issue was found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issue was found.

Summary

Restores compatibility with early Shopware 6.6 while keeping newer API paths.

  • Shop-ID access and reset use APIs available in each Shopware version.
  • Twig warmup and template loading use matching cache keys across Shopware versions.
  • The Elasticsearch console uses the available OpenSearch request path.
  • Scheduler listings show provider IDs when providers cannot be turned into text.
  • The activity cleanup task keeps its daily interval across Shopware versions.
  • The app reachability helper loads without an incompatible Shopware package marker.

The previous unnumbered Twig-test finding is addressed. No new actionable issues were found in the changes since that review. No tests were run during this review.

Reviews (3) · Last reviewed commit: "test: verify Shopware reuses warmed Twig..." · Reviewed by Greptile

@shyim
shyim merged commit 393ad20 into main Nov 15, 2026
13 checks passed
@shyim
shyim deleted the fix/shopware-66-compatibility branch November 15, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant