Skip to content

Migrate XopIncludeEncoder to STAB optics#14

Merged
veewee merged 1 commit into
mainfrom
feature/reflecta-stab-migration
May 27, 2026
Merged

Migrate XopIncludeEncoder to STAB optics#14
veewee merged 1 commit into
mainfrom
feature/reflecta-stab-migration

Conversation

@veewee
Copy link
Copy Markdown
Member

@veewee veewee commented May 26, 2026

Updates XopIncludeEncoder to the four-template STAB form (Iso<S, T, A, B> / XmlEncoder<TDataIn, TDataOut, TXmlOut, TXmlIn>) introduced by veewee/reflecta#31 and php-soap/encoding#64.

Summary

  • @implements XmlEncoder<Attachment, non-empty-string>XmlEncoder<Attachment, Attachment, non-empty-string, Element|non-empty-string> — element-aware encoder declares its honest from input shape.
  • iso() return docblock updated to the same 4-slot shape.
  • Private cid() helper iso stays monomorphic: Iso<Attachment, Attachment, non-empty-string, non-empty-string>.

Runtime behavior unchanged.

Requirements

Test plan

  • vendor/bin/psalm --no-cache green (no errors)
  • vendor/bin/phpunit --no-coverage green (25 tests, 93 assertions)
  • CI green (will require both dependency PRs to land first, or stays draft until then)

@veewee veewee force-pushed the feature/reflecta-stab-migration branch from ce33e5d to 4d3cb93 Compare May 27, 2026 12:52
@veewee veewee marked this pull request as ready for review May 27, 2026 14:23
@veewee veewee force-pushed the feature/reflecta-stab-migration branch from 4d3cb93 to 7318589 Compare May 27, 2026 14:24
Update XmlEncoder/Iso generics to 4-template STAB form for the new
veewee/reflecta interfaces. The iso() return declares the honest
asymmetric shape (Element|non-empty-string accepted on the from
input fast path).

Composer wires the local encoding migration branch and local
reflecta feature/stab-optics via path repositories.
@veewee veewee force-pushed the feature/reflecta-stab-migration branch from 7318589 to 1f7779d Compare May 27, 2026 14:31
@veewee veewee merged commit 7733705 into main May 27, 2026
20 checks passed
@veewee veewee deleted the feature/reflecta-stab-migration branch May 27, 2026 14:34
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