Back to Validation

Infinite

docs/validators/Infinite.md

3.1.11.2 KB
Original Source
<!-- SPDX-License-Identifier: MIT SPDX-FileCopyrightText: (c) Respect Project Contributors SPDX-FileContributor: Alexandre Gomes Gaigalas <[email protected]> SPDX-FileContributor: Henrique Moody <[email protected]> -->

Infinite

  • Infinite()

Validates if the input is an infinite number.

php
v::infinite()->assert(INF);
// Validation passes successfully

Templates

Infinite::TEMPLATE_STANDARD

ModeTemplate
default{{subject}} must be an infinite number
inverted{{subject}} must not be an infinite number

Template placeholders

PlaceholderDescription
subjectThe validated input or the custom validator name (if specified).

Categorization

  • Math
  • Numbers

Changelog

VersionDescription
1.0.0Created

See Also