( ! ) 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.0006361648{main}( ).../checkbox-multiple.php:0
20.0006363936{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFMCheckboxMultiple' ).../checkbox-multiple.php:21
30.0014365744include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFMCheckboxMultiple.php ).../autoloader.php:41
40.0014365744{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormModel' ).../CFMCheckboxMultiple.php:9
50.0021366824include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormModel.php ).../autoloader.php:41
60.0021366824{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CForm' ).../CFormModel.php:9
70.0021367760include( '/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.0006361648{main}( ).../checkbox-multiple.php:0
20.0006363936{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFMCheckboxMultiple' ).../checkbox-multiple.php:21
30.0014365744include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFMCheckboxMultiple.php ).../autoloader.php:41
40.0014365744{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormModel' ).../CFMCheckboxMultiple.php:9
50.0021366824include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormModel.php ).../autoloader.php:41
60.0021366824{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CForm' ).../CFormModel.php:9
70.0021367760include( '/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.0006361648{main}( ).../checkbox-multiple.php:0
20.0006363936{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFMCheckboxMultiple' ).../checkbox-multiple.php:21
30.0014365744include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFMCheckboxMultiple.php ).../autoloader.php:41
40.0014365744{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormModel' ).../CFMCheckboxMultiple.php:9
50.0021366824include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormModel.php ).../autoloader.php:41
60.0021366824{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CForm' ).../CFormModel.php:9
70.0021367760include( '/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.0006361648{main}( ).../checkbox-multiple.php:0
20.0006363936{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFMCheckboxMultiple' ).../checkbox-multiple.php:21
30.0014365744include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFMCheckboxMultiple.php ).../autoloader.php:41
40.0014365744{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormModel' ).../CFMCheckboxMultiple.php:9
50.0021366824include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormModel.php ).../autoloader.php:41
60.0021366824{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CForm' ).../CFormModel.php:9
70.0021367760include( '/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.0006361648{main}( ).../checkbox-multiple.php:0
20.0025366232Mos\HTMLForm\CFMCheckboxMultiple->__construct( ).../checkbox-multiple.php:21
30.0025367792Mos\HTMLForm\CForm->__construct( $form = ['id' => 'Mos\\HTMLForm\\CFMCheckboxMultiple'], $elements = ['items' => ['type' => 'checkbox-multiple', 'values' => [...], 'checked' => [...]], 'submit' => ['type' => 'submit', 'callback' => [...]], 'submit-fail' => ['type' => 'submit', 'callback' => [...]]] ).../CFMCheckboxMultiple.php:17
40.0025367792Mos\HTMLForm\CForm->create( $form = ['id' => 'Mos\\HTMLForm\\CFMCheckboxMultiple'], $elements = ['items' => ['type' => 'checkbox-multiple', 'values' => [...], 'checked' => [...]], 'submit' => ['type' => 'submit', 'callback' => [...]], 'submit-fail' => ['type' => 'submit', 'callback' => [...]]] ).../CForm.php:31
50.0025368168{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormElement' ).../CForm.php:86
60.0026368752include( '/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.0006361648{main}( ).../checkbox-multiple.php:0
20.0025366232Mos\HTMLForm\CFMCheckboxMultiple->__construct( ).../checkbox-multiple.php:21
30.0025367792Mos\HTMLForm\CForm->__construct( $form = ['id' => 'Mos\\HTMLForm\\CFMCheckboxMultiple'], $elements = ['items' => ['type' => 'checkbox-multiple', 'values' => [...], 'checked' => [...]], 'submit' => ['type' => 'submit', 'callback' => [...]], 'submit-fail' => ['type' => 'submit', 'callback' => [...]]] ).../CFMCheckboxMultiple.php:17
40.0025367792Mos\HTMLForm\CForm->create( $form = ['id' => 'Mos\\HTMLForm\\CFMCheckboxMultiple'], $elements = ['items' => ['type' => 'checkbox-multiple', 'values' => [...], 'checked' => [...]], 'submit' => ['type' => 'submit', 'callback' => [...]], 'submit-fail' => ['type' => 'submit', 'callback' => [...]]] ).../CForm.php:31
50.0025368168{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormElement' ).../CForm.php:86
60.0026368752include( '/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.0006361648{main}( ).../checkbox-multiple.php:0
20.0025366232Mos\HTMLForm\CFMCheckboxMultiple->__construct( ).../checkbox-multiple.php:21
30.0025367792Mos\HTMLForm\CForm->__construct( $form = ['id' => 'Mos\\HTMLForm\\CFMCheckboxMultiple'], $elements = ['items' => ['type' => 'checkbox-multiple', 'values' => [...], 'checked' => [...]], 'submit' => ['type' => 'submit', 'callback' => [...]], 'submit-fail' => ['type' => 'submit', 'callback' => [...]]] ).../CFMCheckboxMultiple.php:17
40.0025367792Mos\HTMLForm\CForm->create( $form = ['id' => 'Mos\\HTMLForm\\CFMCheckboxMultiple'], $elements = ['items' => ['type' => 'checkbox-multiple', 'values' => [...], 'checked' => [...]], 'submit' => ['type' => 'submit', 'callback' => [...]], 'submit-fail' => ['type' => 'submit', 'callback' => [...]]] ).../CForm.php:31
50.0025368168{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormElement' ).../CForm.php:86
60.0026368752include( '/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.0006361648{main}( ).../checkbox-multiple.php:0
20.0025366232Mos\HTMLForm\CFMCheckboxMultiple->__construct( ).../checkbox-multiple.php:21
30.0025367792Mos\HTMLForm\CForm->__construct( $form = ['id' => 'Mos\\HTMLForm\\CFMCheckboxMultiple'], $elements = ['items' => ['type' => 'checkbox-multiple', 'values' => [...], 'checked' => [...]], 'submit' => ['type' => 'submit', 'callback' => [...]], 'submit-fail' => ['type' => 'submit', 'callback' => [...]]] ).../CFMCheckboxMultiple.php:17
40.0025367792Mos\HTMLForm\CForm->create( $form = ['id' => 'Mos\\HTMLForm\\CFMCheckboxMultiple'], $elements = ['items' => ['type' => 'checkbox-multiple', 'values' => [...], 'checked' => [...]], 'submit' => ['type' => 'submit', 'callback' => [...]], 'submit-fail' => ['type' => 'submit', 'callback' => [...]]] ).../CForm.php:31
50.0025368168{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormElement' ).../CForm.php:86
60.0026368752include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormElement.php ).../autoloader.php:41
CForm Example: Checkbox with multiple choices

CForm Example: Checkbox with multiple choices


( ! ) 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.0006361648{main}( ).../checkbox-multiple.php:0
20.0037369680Mos\HTMLForm\CForm->getHTML( $options = ??? ).../checkbox-multiple.php:30
30.0037370496Mos\HTMLForm\CForm->getHTMLForElements( $options = ['start' => FALSE, 'columns' => 1, 'use_buttonbar' => TRUE, 'use_fieldset' => TRUE, 'legend' => NULL] ).../CForm.php:242