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

brick / orm / 23255296146

18 Mar 2026 04:24PM UTC coverage: 47.104%. Remained the same
23255296146

push

github

BenMorel
Avoid \Exception that somehow confuses ECS

1 of 5 new or added lines in 1 file covered. (20.0%)

402 existing lines in 24 files now uncovered.

553 of 1174 relevant lines covered (47.1%)

10.6 hits per line

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

0.0
/src/Exception/IdentityConflictException.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Brick\ORM\Exception;
6

7
use function sprintf;
8

9
/**
10
 * Exception thrown when attempting when two instances with the same identity conflict.
11
 */
12
class IdentityConflictException extends ORMException
13
{
14
    /**
15
     * @param class-string     $className      The entity class name.
16
     * @param list<int|string> $scalarIdentity The identity, as a list of scalar values.
17
     */
18
    public static function identityMapConflict(string $className, array $scalarIdentity): self
19
    {
UNCOV
20
        return new self(sprintf(
×
21
            'The instance of entity type %s with identity %s cannot be added to the identity map, ' .
×
22
            'because another instance of this type with the same identity already exists.',
×
23
            $className,
×
24
            self::exportScalarIdentity($scalarIdentity),
×
25
        ));
×
26
    }
27
}
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