Skip to content

Drop the removed decorate_price_helper key from the config shape - #17

Open
loevgaard wants to merge 1 commit into
masterfrom
fix/stale-config-docblock
Open

loevgaard wants to merge 1 commit into
masterfrom
fix/stale-config-docblock

Conversation

@loevgaard

Copy link
Copy Markdown
Member

The @var annotation on the processed configuration in SetonoSyliusToggleVatExtension still declares decorate_price_helper: bool. That option no longer exists in Configuration — it went away when the plugin stopped decorating PriceHelper.

The shape is meant to describe what processConfiguration() actually returns, so a key that can never be present is a false promise to both the next reader and to Psalm, which will happily type-check an access that would be undefined at runtime.

decorate_price_helper now appears nowhere in src/, tests/ or the README.

Addresses a nitpick from #5.

https://claude.ai/code/session_01P9NzuVPQGvaVR97HZFq98a

The @var annotation on the processed configuration still declares
decorate_price_helper, an option that no longer exists in Configuration. The
shape describes what processConfiguration() actually returns, so an extra key
in it is a false promise to both readers and Psalm.

Claude-Session: https://claude.ai/code/session_01P9NzuVPQGvaVR97HZFq98a
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