• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Build has been canceled!

brick / money / 22265467116

21 Feb 2026 10:20PM UTC coverage: 97.711% (-0.2%) from 97.88%
22265467116

push

github

BenMorel
Introduce InvalidArgumentException

2 of 4 new or added lines in 2 files covered. (50.0%)

555 of 568 relevant lines covered (97.71%)

28.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/src/Exception/InvalidArgumentException.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Brick\Money\Exception;
6

7
use function sprintf;
8

9
/**
10
 * Exception thrown when an invalid argument is provided.
11
 */
12
final class InvalidArgumentException extends \InvalidArgumentException implements MoneyException
13
{
14
    public static function invalidScale(int $scale): self
15
    {
NEW
16
        return new self(sprintf('Invalid scale: %d.', $scale));
×
17
    }
18

19
    public static function invalidStep(int $step): self
20
    {
21
        return new self(sprintf('Invalid step: %d.', $step));
49✔
22
    }
23
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc