( ! ) Deprecated: Return type of Mos\HTMLForm\CForm::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CForm.php on line 48
Call Stack
#TimeMemoryFunctionLocation
10.0006361616{main}( ).../validate-custom.php:0
20.0006363904{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFMValidateCustom' ).../validate-custom.php:21
30.0013365712include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFMValidateCustom.php ).../autoloader.php:41
40.0013365712{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormModel' ).../CFMValidateCustom.php:9
50.0013366680include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormModel.php ).../autoloader.php:41
60.0013366680{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CForm' ).../CFormModel.php:9
70.0014367616include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CForm.php ).../autoloader.php:41

( ! ) Deprecated: Return type of Mos\HTMLForm\CForm::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CForm.php on line 58
Call Stack
#TimeMemoryFunctionLocation
10.0006361616{main}( ).../validate-custom.php:0
20.0006363904{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFMValidateCustom' ).../validate-custom.php:21
30.0013365712include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFMValidateCustom.php ).../autoloader.php:41
40.0013365712{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormModel' ).../CFMValidateCustom.php:9
50.0013366680include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormModel.php ).../autoloader.php:41
60.0013366680{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CForm' ).../CFormModel.php:9
70.0014367616include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CForm.php ).../autoloader.php:41

( ! ) Deprecated: Return type of Mos\HTMLForm\CForm::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CForm.php on line 39
Call Stack
#TimeMemoryFunctionLocation
10.0006361616{main}( ).../validate-custom.php:0
20.0006363904{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFMValidateCustom' ).../validate-custom.php:21
30.0013365712include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFMValidateCustom.php ).../autoloader.php:41
40.0013365712{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormModel' ).../CFMValidateCustom.php:9
50.0013366680include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormModel.php ).../autoloader.php:41
60.0013366680{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CForm' ).../CFormModel.php:9
70.0014367616include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CForm.php ).../autoloader.php:41

( ! ) Deprecated: Return type of Mos\HTMLForm\CForm::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CForm.php on line 53
Call Stack
#TimeMemoryFunctionLocation
10.0006361616{main}( ).../validate-custom.php:0
20.0006363904{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFMValidateCustom' ).../validate-custom.php:21
30.0013365712include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFMValidateCustom.php ).../autoloader.php:41
40.0013365712{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormModel' ).../CFMValidateCustom.php:9
50.0013366680include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormModel.php ).../autoloader.php:41
60.0013366680{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CForm' ).../CFormModel.php:9
70.0014367616include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CForm.php ).../autoloader.php:41

( ! ) Deprecated: Return type of Mos\HTMLForm\CFormElement::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormElement.php on line 63
Call Stack
#TimeMemoryFunctionLocation
10.0006361616{main}( ).../validate-custom.php:0
20.0018366088Mos\HTMLForm\CFMValidateCustom->__construct( ).../validate-custom.php:21
30.0018368584Mos\HTMLForm\CForm->__construct( $form = [], $elements = ['input' => ['type' => 'text', 'label' => 'Add string (only validates string "Mumintrollet")', 'validation' => [...]], 'submit' => ['type' => 'submit', 'value' => 'Validate string', 'callback' => [...]]] ).../CFMValidateCustom.php:17
40.0018368584Mos\HTMLForm\CForm->create( $form = [], $elements = ['input' => ['type' => 'text', 'label' => 'Add string (only validates string "Mumintrollet")', 'validation' => [...]], 'submit' => ['type' => 'submit', 'value' => 'Validate string', 'callback' => [...]]] ).../CForm.php:31
50.0018368584{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormElement' ).../CForm.php:86
60.0018369168include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormElement.php ).../autoloader.php:41

( ! ) Deprecated: Return type of Mos\HTMLForm\CFormElement::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormElement.php on line 83
Call Stack
#TimeMemoryFunctionLocation
10.0006361616{main}( ).../validate-custom.php:0
20.0018366088Mos\HTMLForm\CFMValidateCustom->__construct( ).../validate-custom.php:21
30.0018368584Mos\HTMLForm\CForm->__construct( $form = [], $elements = ['input' => ['type' => 'text', 'label' => 'Add string (only validates string "Mumintrollet")', 'validation' => [...]], 'submit' => ['type' => 'submit', 'value' => 'Validate string', 'callback' => [...]]] ).../CFMValidateCustom.php:17
40.0018368584Mos\HTMLForm\CForm->create( $form = [], $elements = ['input' => ['type' => 'text', 'label' => 'Add string (only validates string "Mumintrollet")', 'validation' => [...]], 'submit' => ['type' => 'submit', 'value' => 'Validate string', 'callback' => [...]]] ).../CForm.php:31
50.0018368584{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormElement' ).../CForm.php:86
60.0018369168include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormElement.php ).../autoloader.php:41

( ! ) Deprecated: Return type of Mos\HTMLForm\CFormElement::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormElement.php on line 49
Call Stack
#TimeMemoryFunctionLocation
10.0006361616{main}( ).../validate-custom.php:0
20.0018366088Mos\HTMLForm\CFMValidateCustom->__construct( ).../validate-custom.php:21
30.0018368584Mos\HTMLForm\CForm->__construct( $form = [], $elements = ['input' => ['type' => 'text', 'label' => 'Add string (only validates string "Mumintrollet")', 'validation' => [...]], 'submit' => ['type' => 'submit', 'value' => 'Validate string', 'callback' => [...]]] ).../CFMValidateCustom.php:17
40.0018368584Mos\HTMLForm\CForm->create( $form = [], $elements = ['input' => ['type' => 'text', 'label' => 'Add string (only validates string "Mumintrollet")', 'validation' => [...]], 'submit' => ['type' => 'submit', 'value' => 'Validate string', 'callback' => [...]]] ).../CForm.php:31
50.0018368584{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormElement' ).../CForm.php:86
60.0018369168include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormElement.php ).../autoloader.php:41

( ! ) Deprecated: Return type of Mos\HTMLForm\CFormElement::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormElement.php on line 73
Call Stack
#TimeMemoryFunctionLocation
10.0006361616{main}( ).../validate-custom.php:0
20.0018366088Mos\HTMLForm\CFMValidateCustom->__construct( ).../validate-custom.php:21
30.0018368584Mos\HTMLForm\CForm->__construct( $form = [], $elements = ['input' => ['type' => 'text', 'label' => 'Add string (only validates string "Mumintrollet")', 'validation' => [...]], 'submit' => ['type' => 'submit', 'value' => 'Validate string', 'callback' => [...]]] ).../CFMValidateCustom.php:17
40.0018368584Mos\HTMLForm\CForm->create( $form = [], $elements = ['input' => ['type' => 'text', 'label' => 'Add string (only validates string "Mumintrollet")', 'validation' => [...]], 'submit' => ['type' => 'submit', 'value' => 'Validate string', 'callback' => [...]]] ).../CForm.php:31
50.0018368584{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormElement' ).../CForm.php:86
60.0018369168include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormElement.php ).../autoloader.php:41
CForm Example: Custom validation

CForm Example: Custom validation


( ! ) Fatal error: Uncaught Error: Call to undefined function Mos\HTMLForm\each() in /home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CForm.php on line 278
( ! ) Error: Call to undefined function Mos\HTMLForm\each() in /home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CForm.php on line 278
Call Stack
#TimeMemoryFunctionLocation
10.0006361616{main}( ).../validate-custom.php:0
20.0022369320Mos\HTMLForm\CForm->getHTML( $options = ??? ).../validate-custom.php:30
30.0022370112Mos\HTMLForm\CForm->getHTMLForElements( $options = ['start' => FALSE, 'columns' => 1, 'use_buttonbar' => TRUE, 'use_fieldset' => TRUE, 'legend' => NULL] ).../CForm.php:242