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

api-platform / core / 14955037258

11 May 2025 10:48AM UTC coverage: 7.203% (-1.3%) from 8.457%
14955037258

Pull #7135

github

web-flow
Merge 8fd0f14b5 into 4dd0cdfc4
Pull Request #7135: fix(symfony,laravel): InvalidUriVariableException status code (e400)

1 of 65 new or added lines in 5 files covered. (1.54%)

503 existing lines in 14 files now uncovered.

10846 of 150578 relevant lines covered (7.2%)

3.29 hits per line

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

0.0
/tests/Fixtures/TestBundle/Entity/PullRequest7135/Bar.php
1
<?php
2

3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <dunglas@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types=1);
13

14
namespace ApiPlatform\Tests\Fixtures\TestBundle\Entity\PullRequest7135;
15

16
use ApiPlatform\Metadata\ApiResource;
17
use ApiPlatform\Metadata\Get;
18
use Doctrine\ORM\Mapping as ORM;
19
use Symfony\Component\Uid\Uuid;
20

21
#[ORM\Entity()]
22
#[ApiResource(
NEW
23
    shortName: 'BarPr7135',
×
NEW
24
    operations: [
×
NEW
25
        new Get(
×
NEW
26
            uriTemplate: '/pull-request-7135/bar/{id}',
×
NEW
27
        ),
×
NEW
28
    ]
×
NEW
29
)]
×
30
#[ORM\Table(name: 'bar6466')]
31
class Bar
32
{
33
    #[ORM\Id]
34
    #[ORM\Column(type: 'symfony_uuid', unique: true)]
35
    #[ORM\GeneratedValue(strategy: 'CUSTOM')]
36
    #[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
37
    public Uuid $id;
38

39
    #[ORM\Column]
40
    public string $title = '';
41

42
    public function __construct(?Uuid $id = null)
43
    {
NEW
44
        $this->id = $id ?: Uuid::v7();
×
45
    }
46
}
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

© 2025 Coveralls, Inc