• 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

62.5
/src/Tempest/Validation/src/Rules/IsInteger.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Validation\Rules;
6

7
use Attribute;
8
use Tempest\Validation\Rule;
9

10
#[Attribute]
11
final readonly class IsInteger implements Rule
12
{
13
    public function __construct(
5✔
14
        private bool $orNull = false,
15
    ) {}
5✔
16

17
    public function isValid(mixed $value): bool
5✔
18
    {
19
        if ($this->orNull && $value === null) {
5✔
UNCOV
20
            return true;
×
21
        }
22

23
        return is_int($value);
5✔
24
    }
25

UNCOV
26
    public function message(): string
×
27
    {
UNCOV
28
        return 'Value should be an integer';
×
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