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

nette / forms / 28393332968
94%
master: 93%

Build:
Build:
LAST BUILD BRANCH: v3.3
DEFAULT BRANCH: master
Ran 29 Jun 2026 06:17PM 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

28 Jun 2026 12:32PM UTC coverage: 93.701% (+0.06%) from 93.646%
28393332968

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%)

1 existing line in 1 file now uncovered.

2157 of 2302 relevant lines covered (93.7%)

0.94 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
97.67
0.0% src/Forms/Controls/TextBase.php
Jobs
ID Job ID Ran Files Coverage
1 28393332968.1 29 Jun 2026 06:17PM UTC 43
93.7
GitHub Action Run
Source Files on build 28393332968
  • Tree
  • List 43
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e00b4f0d on github
  • Prev Build on v3.3 (#28116106879)
  • Next Build on v3.3 (#28395466416)
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