Skip to main content

API Overview

Functions

is-separator-invalid ( $value )

Indicates whether a specified value is invalid for a separator parameter.

parameter ( $message, $context, $names... )

Returns an error message stating an issue with one or more parameters.

parameter-type ( $context, $name, $value, $types... )

Returns an error message stating a parameter received the wrong type.

separator () [+1 overload]

Returns an error message stating a separator variable received the wrong value.

validate-index ( $context, $name, $value, $list ) [+1 overload]

Returns a valid index for a list of a given length; otherwise, an error message stating the reason the index is invalid.

variable ( $message, $names... )

Returns an error message stating an issue with one or more variables.

variable-type ( $name, $value, $types... [, $message] )

Returns an error message stating a variable received the wrong type.

Don’t see the function you’re looking for? Request a new feature describing a use case.