Skip to content

Remove unused psalm type alias - #10

Open
loevgaard wants to merge 1 commit into
fix/round-calculated-tax-amountfrom
chore/remove-unused-psalm-type
Open

loevgaard wants to merge 1 commit into
fix/round-calculated-tax-amountfrom
chore/remove-unused-psalm-type

Conversation

@loevgaard

Copy link
Copy Markdown
Member

ProductVariantPricesCalculator carries a @psalm-type BacktraceClosure alias that nothing references. It is a leftover from when the calculator inspected the backtrace to work out whether it was being called from a Twig context — that approach was dropped in f402dd8 in favour of the vat_context_aware flag.

Stacked on #9 (both touch ProductVariantPricesCalculator). Review/merge that one first; this PR retargets to master automatically once it lands.

Addresses a nitpick from #5.

https://claude.ai/code/session_01P9NzuVPQGvaVR97HZFq98a

The BacktraceClosure alias is a leftover from when the plugin inspected the
backtrace to decide whether it was called from a Twig context. Nothing has
referenced it since f402dd8.

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