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

nette / forms / 28395466416
94%
master: 93%

Build:
Build:
LAST BUILD BRANCH: v3.3
DEFAULT BRANCH: master
Ran 29 Jun 2026 06:55PM UTC
Jobs 1
Files 43
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Jun 2026 06:55PM UTC coverage: 93.701%. Remained the same
28395466416

push

github

dg
added Form::Enum validation rule for backed enums

Validates that a control's value is a valid case of a backed enum, catching
invalid input during form validation instead of letting it reach the typed
mapping sink (getValues(Dto::class)), where a non-member value would raise a
TypeError/ValueError and an unhandled HTTP 500.

Int-backed enums coerce the submitted string via filter_var() before tryFrom();
string-backed enums check is_string() + tryFrom(). The rule exports to JS as an
:equal membership check against the enum case values, so no new client-side
validator is needed. Passing a non-backed enum throws a clear
InvalidArgumentException instead of a cryptic fatal.

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

16 existing lines in 3 files now uncovered.

2157 of 2302 relevant lines covered (93.7%)

0.94 hits per line

Coverage Regressions

Lines Coverage ∆ File
10
92.35
0.0% src/Forms/Form.php
3
96.25
0.0% src/Forms/Helpers.php
3
96.03
0.0% src/Forms/Validator.php
Jobs
ID Job ID Ran Files Coverage
1 28395466416.1 29 Jun 2026 06:55PM UTC 43
93.7
GitHub Action Run
Source Files on build 28395466416
  • Tree
  • List 43
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a6d544fd on github
  • Prev Build on v3.3 (#28393332968)
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