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

martin-georgiev / postgresql-for-doctrine / 17182619488

24 Aug 2025 01:46AM UTC coverage: 94.381% (-0.3%) from 94.65%
17182619488

Pull #421

github

web-flow
Merge d1b5e36bf into 4aafaebdc
Pull Request #421: feat(#305): add support for PostGIS's `GEOGRAPHY` and `GEOMETRY`

233 of 252 new or added lines in 14 files covered. (92.46%)

2066 of 2189 relevant lines covered (94.38%)

17.46 hits per line

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

33.33
/src/MartinGeorgiev/Doctrine/DBAL/Types/GeometryArray.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace MartinGeorgiev\Doctrine\DBAL\Types;
6

7
use Doctrine\DBAL\Types\ConversionException;
8
use MartinGeorgiev\Doctrine\DBAL\Types\Exceptions\InvalidGeometryForPHPException;
9

10
/**
11
 * Implementation of PostgreSQL array for PostGIS GEOMETRY data type.
12
 *
13
 * @since 3.5
14
 */
15
final class GeometryArray extends SpatialDataArray
16
{
17
    protected const TYPE_NAME = 'geometry[]';
18

19
    protected function transformArrayItemForPostgres(mixed $item): string
11✔
20
    {
21
        return (string) $this->getValidatedArrayItem($item);
11✔
22
    }
23

NEW
24
    protected function createInvalidTypeExceptionForPHP(mixed $item): ConversionException
×
25
    {
NEW
26
        return InvalidGeometryForPHPException::forInvalidType($item);
×
27
    }
28

NEW
29
    protected function createInvalidFormatExceptionForPHP(mixed $item): ConversionException
×
30
    {
NEW
31
        return InvalidGeometryForPHPException::forInvalidFormat($item);
×
32
    }
33
}
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