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

CPS-IT / handlebars / 27536736573

15 Jun 2026 09:25AM UTC coverage: 88.909% (-0.9%) from 89.785%
27536736573

Pull #588

github

web-flow
Merge d526cb2dc into f9e58be95
Pull Request #588: [FEATURE] Provide `get` helper for object access

0 of 16 new or added lines in 2 files covered. (0.0%)

1459 of 1641 relevant lines covered (88.91%)

7.11 hits per line

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

0.0
/Classes/Exception/TypeIsNotSupported.php
1
<?php
2

3
declare(strict_types=1);
4

5
/*
6
 * This file is part of the TYPO3 CMS extension "handlebars".
7
 *
8
 * It is free software; you can redistribute it and/or modify it under
9
 * the terms of the GNU General Public License, either version 2
10
 * of the License, or any later version.
11
 *
12
 * For the full copyright and license information, please read the
13
 * LICENSE.txt file that was distributed with this source code.
14
 *
15
 * The TYPO3 project - inspiring people to share!
16
 */
17

18
namespace CPSIT\Typo3Handlebars\Exception;
19

20
/**
21
 * TypeIsNotSupported
22
 *
23
 * @author Elias Häußler <e.haeussler@familie-redlich.de>
24
 * @license GPL-2.0-or-later
25
 */
26
final class TypeIsNotSupported extends Exception
27
{
28
    /**
29
     * @param non-empty-string|non-empty-list<non-empty-string> $expected
30
     */
NEW
31
    public function __construct(string|array $expected, mixed $actual)
×
32
    {
NEW
33
        $types = is_array($expected) ? $expected : [$expected];
×
34

NEW
35
        parent::__construct(
×
NEW
36
            sprintf(
×
NEW
37
                'The type "%s" is not supported, it must be %s instead.',
×
NEW
38
                get_debug_type($actual),
×
NEW
39
                count($types) > 1 ? sprintf('one of "%s"', implode('", "', $types)) : sprintf('"%s"', $types[0]),
×
NEW
40
            ),
×
NEW
41
            1781515238,
×
NEW
42
        );
×
43
    }
44
}
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