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

api-platform / schema-generator / 13057938550

30 Jan 2025 05:35PM UTC coverage: 79.038% (-0.2%) from 79.191%
13057938550

push

github

web-flow
feat: compatibility with PHP 8.4 (#433)

* chore: bump deps and fix tests

* use normal phpunit

* fix

* fix 8.4

* fix PHPUnit config

* fix

* fix

* run PHP CS Fixer on 8.3

* fix e2e tests

* fix coverage

9 of 10 new or added lines in 7 files covered. (90.0%)

14 existing lines in 3 files now uncovered.

1742 of 2204 relevant lines covered (79.04%)

16.05 hits per line

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

0.0
/src/OpenApi/Model/Constant.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\SchemaGenerator\OpenApi\Model;
15

16
use ApiPlatform\SchemaGenerator\Model\Constant as BaseConstant;
17

18
final class Constant extends BaseConstant
19
{
20
    private string $value;
21

22
    public function __construct(string $name, string $value)
23
    {
24
        parent::__construct($name);
×
25

26
        $this->value = $value;
×
27
    }
28

29
    public function value(): string
30
    {
31
        return $this->value;
×
32
    }
33

34
    public function comment(): string
35
    {
NEW
36
        return '';
×
37
    }
38
}
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