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

overblog / GraphQLBundle / 21453462717

28 Jan 2026 07:59PM UTC coverage: 98.546%. Remained the same
21453462717

Pull #1237

github

web-flow
Merge 9d8701c8e into 180e2334f
Pull Request #1237: Test on PHP 8.5

4541 of 4608 relevant lines covered (98.55%)

76.57 hits per line

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

100.0
/src/Config/Parser/MetadataParser/TypeGuesser/PhpTypeGuesser.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Overblog\GraphQLBundle\Config\Parser\MetadataParser\TypeGuesser;
6

7
abstract class PhpTypeGuesser extends TypeGuesser
8
{
9
    /**
10
     * Convert a PHP Builtin type to a GraphQL type.
11
     */
12
    protected function resolveTypeFromPhpType(string $phpType): ?string
13
    {
14
        switch ($phpType) {
15
            case 'boolean':
157✔
16
            case 'bool':
157✔
17
                return 'Boolean';
106✔
18
            case 'integer':
149✔
19
            case 'int':
149✔
20
                return 'Int';
106✔
21
            case 'float':
141✔
22
            case 'double':
133✔
23
                return 'Float';
106✔
24
            case 'string':
133✔
25
                return 'String';
133✔
26
            default:
27
                return null;
52✔
28
        }
29
    }
30
}
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