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

nette / latte / 16317387179

16 Jul 2025 10:46AM UTC coverage: 93.699% (-0.1%) from 93.84%
16317387179

push

github

dg
added Helpers::stringOrNull() [Closes #401]

6 of 6 new or added lines in 2 files covered. (100.0%)

57 existing lines in 19 files now uncovered.

5160 of 5507 relevant lines covered (93.7%)

0.94 hits per line

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

62.5
/src/Latte/Compiler/Nodes/Php/IntersectionTypeNode.php
1
<?php
2

3
/**
4
 * This file is part of the Latte (https://latte.nette.org)
5
 * Copyright (c) 2008 David Grudl (https://davidgrudl.com)
6
 */
7

8
declare(strict_types=1);
9

10
namespace Latte\Compiler\Nodes\Php;
11

12
use Latte\Compiler\Position;
13
use Latte\Compiler\PrintContext;
14

15

16
class IntersectionTypeNode extends ComplexTypeNode
17
{
18
        public function __construct(
1✔
19
                /** @var array<IdentifierNode|NameNode> */
20
                public array $types,
21
                public ?Position $position = null,
22
        ) {
23
                (function (IdentifierNode|NameNode ...$args) {})(...$types);
1✔
24
        }
1✔
25

26

27
        public function print(PrintContext $context): string
1✔
28
        {
29
                return $context->implode($this->types, '&');
1✔
30
        }
31

32

UNCOV
33
        public function &getIterator(): \Generator
×
34
        {
UNCOV
35
                foreach ($this->types as &$item) {
×
36
                        yield $item;
×
37
                }
38
        }
39
}
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