@@ -486,7 +486,7 @@ Typed Validated Input
486486``getValidatedInput() `` returns the same validated data as a
487487``CodeIgniter\Validation\ValidatedInput `` object. Use it after validation
488488succeeds when you want to read common controller values as strings, integers,
489- booleans, arrays, dates, or enums:
489+ floats, booleans, arrays, dates, or enums:
490490
491491.. versionadded :: 4.8.0
492492
@@ -514,6 +514,8 @@ All methods support dot-array syntax for nested validated data.
514514 missing, it returns the default value or ``null ``.
515515* ``integer($key, $default = null) `` returns ``int|null ``. If the field is
516516 missing, it returns the default value or ``null ``.
517+ * ``float($key, $default = null) `` returns ``float|null ``. If the field is
518+ missing, it returns the default value or ``null ``.
517519* ``boolean($key, $default = null) `` returns ``bool|null ``. If the field is
518520 missing, it returns the default value or ``null ``.
519521* ``array($key, $default = null) `` returns ``array|null ``. If the field is
@@ -529,8 +531,8 @@ Fields that are present with a ``null`` value return ``null``. This lets you
529531distinguish a missing optional field from a field that was validated as
530532``null ``.
531533
532- Use validation rules such as ``integer ``, ``valid_date ``, ``in_list ``, or a
533- custom rule to ensure the value matches the type you plan to read. The
534+ Use validation rules such as ``integer ``, ``decimal ``, ``valid_date ``,
535+ `` in_list ``, or a custom rule to ensure the value matches the type you plan to read. The
534536``date() `` method only parses the value; validation rules should enforce
535537acceptable date formats and ranges. For strict calendar validation, add a rule
536538such as ``valid_date[Y-m-d] ``.
0 commit comments