• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

martin-georgiev / postgresql-for-doctrine / 4fd48975180f74d90350ef073421977669739125

18 Mar 2026 11:28PM UTC coverage: 98.255% (-0.1%) from 98.372%
4fd48975180f74d90350ef073421977669739125

Pull #591

github

web-flow
Merge ab4c4afa0 into f25d13712
Pull Request #591: feat: add support for `interval[]` DBAL type

59 of 65 new or added lines in 6 files covered. (90.77%)

4167 of 4241 relevant lines covered (98.26%)

36.43 hits per line

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

66.67
/src/MartinGeorgiev/Doctrine/DBAL/Types/Exceptions/InvalidIntervalArrayItemForDatabaseException.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace MartinGeorgiev\Doctrine\DBAL\Types\Exceptions;
6

7
use Doctrine\DBAL\Types\ConversionException;
8

9
/**
10
 * @since 4.4
11
 *
12
 * @author Martin Georgiev <martin.georgiev@gmail.com>
13
 */
14
class InvalidIntervalArrayItemForDatabaseException extends ConversionException
15
{
16
    private static function create(string $message, mixed $value): self
2✔
17
    {
18
        return new self(\sprintf($message, \var_export($value, true)));
2✔
19
    }
20

NEW
21
    public static function forInvalidType(mixed $value): self
×
22
    {
NEW
23
        return self::create('Cannot convert interval array item to database value. Expected an IntervalValueObject, DateInterval, string, or null, got %s.', $value);
×
24
    }
25

26
    public static function forInvalidFormat(mixed $value): self
2✔
27
    {
28
        return self::create('Cannot convert interval array item to database value. Value %s is not a valid interval.', $value);
2✔
29
    }
30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc