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

nette / forms / 40630207392
92%
master: 94%

Build:
Build:
LAST BUILD BRANCH: v3.3
DEFAULT BRANCH: master
Ran 28 Oct 2026 04:04AM UTC
Jobs 1
Files 46
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 Oct 2026 04:03AM UTC coverage: 92.13% (-1.2%) from 93.369%
40630207392

push

github

dg
Helpers::tryEnumConversion() no longer throws on incompatible input

When mapping a text/hidden control onto a backed-enum property, the raw
submitted value was passed straight to BackedEnum::from(). Under strict_types
that rejects any mismatch: an int-backed enum given a non-numeric string (e.g.
an empty field) raised TypeError, an out-of-range value raised ValueError.

The method is now total: it converts only when a matching case exists - coercing
numeric strings to the int backing type so int-backed enums map from form input
at all - and returns the value unchanged otherwise.

This only makes the helper itself safe; it does not add enum-membership
validation. A required enum property fed an invalid value still fails later at
the typed assignment in the target object's constructor, which is generic
typed-mapping behaviour, not specific to enums.

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

79 existing lines in 16 files now uncovered.

1955 of 2122 relevant lines covered (92.13%)

0.92 hits per line

Coverage Regressions

Lines Coverage ∆ File
18
87.89
-1.86% src/Forms/Form.php
14
91.44
-0.48% src/Forms/Rendering/DefaultFormRenderer.php
11
66.38
-3.89% src/Forms/Blueprint.php
8
93.13
-0.95% src/Forms/Controls/BaseControl.php
6
5.26
5.26% src/Bridges/FormsLatte/Nodes/FormPrintNode.php
4
90.48
-1.7% src/Forms/Container.php
4
86.67
-9.89% src/Forms/Controls/CsrfProtection.php
3
82.76
-3.91% src/Forms/Controls/SubmitButton.php
3
94.02
-1.67% src/Forms/Validator.php
2
89.47
0.58% src/Forms/Controls/Checkbox.php
1
98.28
-0.06% src/Bridges/FormsLatte/Nodes/FieldNNameNode.php
1
97.22
0.0% src/Bridges/FormsLatte/Nodes/LabelNode.php
1
96.97
-3.03% src/Bridges/FormsLatte/Runtime.php
1
93.1
-3.77% src/Forms/Controls/MultiSelectBox.php
1
97.56
-0.11% src/Forms/Controls/TextBase.php
1
90.24
-2.61% src/Forms/Controls/UploadControl.php
Jobs
ID Job ID Ran Files Coverage
1 40630207392.1 28 Oct 2026 04:04AM UTC 46
92.13
GitHub Action Run
Source Files on build 40630207392
  • Tree
  • List 46
  • Changed 46
  • Source Changed 46
  • Coverage Changed 46
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40630207392
  • d084d3b5 on github
  • Prev Build on v3.2 (#28395430264)
  • Next Build on v3.2 (#40739659460)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc