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

tempestphp / tempest-framework / 14049246919

24 Mar 2025 09:42PM UTC coverage: 79.353% (-0.04%) from 79.391%
14049246919

push

github

web-flow
feat(support): support array parameters in string manipulations (#1073)

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

735 existing lines in 126 files now uncovered.

10492 of 13222 relevant lines covered (79.35%)

90.78 hits per line

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

91.67
/src/Tempest/Reflection/src/ParameterReflector.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Reflection;
6

7
use ReflectionParameter as PHPReflectionParameter;
8

9
final readonly class ParameterReflector implements Reflector
10
{
11
    use HasAttributes;
12

13
    public function __construct(
693✔
14
        private PHPReflectionParameter $reflectionParameter,
15
    ) {}
693✔
16

17
    public function getReflection(): PHPReflectionParameter
692✔
18
    {
19
        return $this->reflectionParameter;
692✔
20
    }
21

22
    public function getName(): string
693✔
23
    {
24
        return $this->reflectionParameter->getName();
693✔
25
    }
26

27
    public function getType(): TypeReflector
693✔
28
    {
29
        return new TypeReflector($this->reflectionParameter);
693✔
30
    }
31

UNCOV
32
    public function isOptional(): bool
×
33
    {
UNCOV
34
        return $this->reflectionParameter->isOptional();
×
35
    }
36

37
    public function isDefaultValueAvailable(): bool
105✔
38
    {
39
        return $this->reflectionParameter->isDefaultValueAvailable();
105✔
40
    }
41

42
    public function getPosition(): int
91✔
43
    {
44
        return $this->reflectionParameter->getPosition();
91✔
45
    }
46

47
    public function hasDefaultValue(): bool
669✔
48
    {
49
        return $this->reflectionParameter->isDefaultValueAvailable();
669✔
50
    }
51

52
    public function getDefaultValue(): mixed
664✔
53
    {
54
        return $this->reflectionParameter->getDefaultValue();
664✔
55
    }
56

57
    public function isVariadic(): bool
121✔
58
    {
59
        return $this->reflectionParameter->isVariadic();
121✔
60
    }
61

62
    public function isIterable(): bool
121✔
63
    {
64
        return $this->getType()->isIterable();
121✔
65
    }
66

67
    public function isRequired(): bool
120✔
68
    {
69
        return ! $this->reflectionParameter->allowsNull() && ! $this->reflectionParameter->isOptional();
120✔
70
    }
71
}
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