This documentation describes unreleased changes on the main branch.

#[Length]

Attribute on parameters.

use Saij\WpAppFramework\Table\Length;

The maximum length of a string column in characters (1 to 16383) instead of 191. Saving a longer string fails.

Arguments

#[Length(int $length)]
ParameterTypeDefaultDescription
lengthintrequiredThe maximum number of characters, 1 to 16383; a default of the parameter must fit. The build reports other values.