Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix money parser #153

Merged
merged 1 commit into from
Aug 18, 2023
Merged

Fix money parser #153

merged 1 commit into from
Aug 18, 2023

Conversation

ricardogobbosouza
Copy link
Member

@ricardogobbosouza ricardogobbosouza commented Aug 17, 2023

Resolve #135

I had to put an aligned try catch, checking first NumberFormatter::CURRENCY and then NumberFormatter::DECIMAL

@codecov
Copy link

codecov bot commented Aug 17, 2023

Codecov Report

Merging #153 (6da397d) into main (1604577) will increase coverage by 0.07%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main     #153      +/-   ##
============================================
+ Coverage     96.44%   96.52%   +0.07%     
- Complexity      168      169       +1     
============================================
  Files            21       21              
  Lines           450      460      +10     
============================================
+ Hits            434      444      +10     
  Misses           16       16              
Files Changed Coverage Δ
src/MoneyParserTrait.php 100.00% <100.00%> (ø)

@ricardogobbosouza ricardogobbosouza merged commit d54ebc5 into main Aug 18, 2023
66 checks passed
@ricardogobbosouza ricardogobbosouza deleted the fix-money-parser branch August 18, 2023 11:13
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.

Invalid argument in NumberFormatter()
1 participant