Skip to content

fix: narrow RoundingNecessaryException for Money::of()/ofMinor()#19

Merged
simPod merged 1 commit into
simPod:mainfrom
baci266:narrow-rounding-mode-factory
Mar 29, 2026
Merged

fix: narrow RoundingNecessaryException for Money::of()/ofMinor()#19
simPod merged 1 commit into
simPod:mainfrom
baci266:narrow-rounding-mode-factory

Conversation

@baci266
Copy link
Copy Markdown
Contributor

@baci266 baci266 commented Mar 27, 2026

PHPStan uses first-match-wins for throw type extensions, so the separate MoneyFactoryRoundingModeThrowTypeExtension was dead code — it was never reached because MoneyFactoryThrowTypeExtension was registered first and matched the same methods.

…ding mode

PHPStan uses first-match-wins for throw type extensions, so the separate MoneyFactoryRoundingModeThrowTypeExtension was dead code — it was never reached because MoneyFactoryThrowTypeExtension was registered first and matched the same methods.
@simPod simPod merged commit ef4b6a1 into simPod:main Mar 29, 2026
9 of 10 checks passed
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.

2 participants