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

nette / latte / 16023663319

02 Jul 2025 11:17AM UTC coverage: 93.84% (+0.1%) from 93.694%
16023663319

push

github

dg
Implemented proper handling of HTML attributes based on their types WIP

9 of 9 new or added lines in 1 file covered. (100.0%)

50 existing lines in 18 files now uncovered.

5240 of 5584 relevant lines covered (93.84%)

0.94 hits per line

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

55.56
/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
use Latte\Helpers;
15

16

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

27

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

33

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