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

martin-georgiev / postgresql-for-doctrine / 1d426781b66f0a77de35d3b54e640b0ee00108bd

18 Mar 2026 11:14AM UTC coverage: 98.19% (-0.1%) from 98.316%
1d426781b66f0a77de35d3b54e640b0ee00108bd

Pull #591

github

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

44 of 50 new or added lines in 3 files covered. (88.0%)

4015 of 4089 relevant lines covered (98.19%)

36.65 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