( ! ) 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.0006360656{main}( ).../checkbox.php:0
20.0014363352{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFMCheckbox' ).../checkbox.php:21
30.0028364944include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFMCheckbox.php ).../autoloader.php:41
40.0028364944{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormModel' ).../CFMCheckbox.php:9
50.0035366024include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormModel.php ).../autoloader.php:41
60.0035366024{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CForm' ).../CFormModel.php:9
70.0056367072include( '/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.0006360656{main}( ).../checkbox.php:0
20.0014363352{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFMCheckbox' ).../checkbox.php:21
30.0028364944include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFMCheckbox.php ).../autoloader.php:41
40.0028364944{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormModel' ).../CFMCheckbox.php:9
50.0035366024include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormModel.php ).../autoloader.php:41
60.0035366024{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CForm' ).../CFormModel.php:9
70.0056367072include( '/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.0006360656{main}( ).../checkbox.php:0
20.0014363352{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFMCheckbox' ).../checkbox.php:21
30.0028364944include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFMCheckbox.php ).../autoloader.php:41
40.0028364944{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormModel' ).../CFMCheckbox.php:9
50.0035366024include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormModel.php ).../autoloader.php:41
60.0035366024{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CForm' ).../CFormModel.php:9
70.0056367072include( '/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.0006360656{main}( ).../checkbox.php:0
20.0014363352{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFMCheckbox' ).../checkbox.php:21
30.0028364944include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFMCheckbox.php ).../autoloader.php:41
40.0028364944{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormModel' ).../CFMCheckbox.php:9
50.0035366024include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormModel.php ).../autoloader.php:41
60.0035366024{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CForm' ).../CFormModel.php:9
70.0056367072include( '/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.0006360656{main}( ).../checkbox.php:0
20.0061365872Mos\HTMLForm\CFMCheckbox->__construct( ).../checkbox.php:21
30.0061366840Mos\HTMLForm\CForm->__construct( $form = [], $elements = ['accept_mail' => ['type' => 'checkbox', 'label' => 'It´s great if you send me product information by mail.', 'checked' => FALSE], 'accept_phone' => ['type' => 'checkbox', 'label' => 'You may call me to try and sell stuff.', 'checked' => TRUE], 'accept_agreement' => ['type' => 'checkbox', 'label' => 'You must accept the <a href=http://opensource.org/licenses/GPL-3.0>license agreement</a>.', 'required' => TRUE, 'validation' => [...]], 'submit' => ['type' => 'submit', 'value' => 'Submit', 'callback' => [...]]] ).../CFMCheckbox.php:19
40.0061366840Mos\HTMLForm\CForm->create( $form = [], $elements = ['accept_mail' => ['type' => 'checkbox', 'label' => 'It´s great if you send me product information by mail.', 'checked' => FALSE], 'accept_phone' => ['type' => 'checkbox', 'label' => 'You may call me to try and sell stuff.', 'checked' => TRUE], 'accept_agreement' => ['type' => 'checkbox', 'label' => 'You must accept the <a href=http://opensource.org/licenses/GPL-3.0>license agreement</a>.', 'required' => TRUE, 'validation' => [...]], 'submit' => ['type' => 'submit', 'value' => 'Submit', 'callback' => [...]]] ).../CForm.php:31
50.0061366840{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormElement' ).../CForm.php:86
60.0077367536include( '/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.0006360656{main}( ).../checkbox.php:0
20.0061365872Mos\HTMLForm\CFMCheckbox->__construct( ).../checkbox.php:21
30.0061366840Mos\HTMLForm\CForm->__construct( $form = [], $elements = ['accept_mail' => ['type' => 'checkbox', 'label' => 'It´s great if you send me product information by mail.', 'checked' => FALSE], 'accept_phone' => ['type' => 'checkbox', 'label' => 'You may call me to try and sell stuff.', 'checked' => TRUE], 'accept_agreement' => ['type' => 'checkbox', 'label' => 'You must accept the <a href=http://opensource.org/licenses/GPL-3.0>license agreement</a>.', 'required' => TRUE, 'validation' => [...]], 'submit' => ['type' => 'submit', 'value' => 'Submit', 'callback' => [...]]] ).../CFMCheckbox.php:19
40.0061366840Mos\HTMLForm\CForm->create( $form = [], $elements = ['accept_mail' => ['type' => 'checkbox', 'label' => 'It´s great if you send me product information by mail.', 'checked' => FALSE], 'accept_phone' => ['type' => 'checkbox', 'label' => 'You may call me to try and sell stuff.', 'checked' => TRUE], 'accept_agreement' => ['type' => 'checkbox', 'label' => 'You must accept the <a href=http://opensource.org/licenses/GPL-3.0>license agreement</a>.', 'required' => TRUE, 'validation' => [...]], 'submit' => ['type' => 'submit', 'value' => 'Submit', 'callback' => [...]]] ).../CForm.php:31
50.0061366840{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormElement' ).../CForm.php:86
60.0077367536include( '/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.0006360656{main}( ).../checkbox.php:0
20.0061365872Mos\HTMLForm\CFMCheckbox->__construct( ).../checkbox.php:21
30.0061366840Mos\HTMLForm\CForm->__construct( $form = [], $elements = ['accept_mail' => ['type' => 'checkbox', 'label' => 'It´s great if you send me product information by mail.', 'checked' => FALSE], 'accept_phone' => ['type' => 'checkbox', 'label' => 'You may call me to try and sell stuff.', 'checked' => TRUE], 'accept_agreement' => ['type' => 'checkbox', 'label' => 'You must accept the <a href=http://opensource.org/licenses/GPL-3.0>license agreement</a>.', 'required' => TRUE, 'validation' => [...]], 'submit' => ['type' => 'submit', 'value' => 'Submit', 'callback' => [...]]] ).../CFMCheckbox.php:19
40.0061366840Mos\HTMLForm\CForm->create( $form = [], $elements = ['accept_mail' => ['type' => 'checkbox', 'label' => 'It´s great if you send me product information by mail.', 'checked' => FALSE], 'accept_phone' => ['type' => 'checkbox', 'label' => 'You may call me to try and sell stuff.', 'checked' => TRUE], 'accept_agreement' => ['type' => 'checkbox', 'label' => 'You must accept the <a href=http://opensource.org/licenses/GPL-3.0>license agreement</a>.', 'required' => TRUE, 'validation' => [...]], 'submit' => ['type' => 'submit', 'value' => 'Submit', 'callback' => [...]]] ).../CForm.php:31
50.0061366840{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormElement' ).../CForm.php:86
60.0077367536include( '/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.0006360656{main}( ).../checkbox.php:0
20.0061365872Mos\HTMLForm\CFMCheckbox->__construct( ).../checkbox.php:21
30.0061366840Mos\HTMLForm\CForm->__construct( $form = [], $elements = ['accept_mail' => ['type' => 'checkbox', 'label' => 'It´s great if you send me product information by mail.', 'checked' => FALSE], 'accept_phone' => ['type' => 'checkbox', 'label' => 'You may call me to try and sell stuff.', 'checked' => TRUE], 'accept_agreement' => ['type' => 'checkbox', 'label' => 'You must accept the <a href=http://opensource.org/licenses/GPL-3.0>license agreement</a>.', 'required' => TRUE, 'validation' => [...]], 'submit' => ['type' => 'submit', 'value' => 'Submit', 'callback' => [...]]] ).../CFMCheckbox.php:19
40.0061366840Mos\HTMLForm\CForm->create( $form = [], $elements = ['accept_mail' => ['type' => 'checkbox', 'label' => 'It´s great if you send me product information by mail.', 'checked' => FALSE], 'accept_phone' => ['type' => 'checkbox', 'label' => 'You may call me to try and sell stuff.', 'checked' => TRUE], 'accept_agreement' => ['type' => 'checkbox', 'label' => 'You must accept the <a href=http://opensource.org/licenses/GPL-3.0>license agreement</a>.', 'required' => TRUE, 'validation' => [...]], 'submit' => ['type' => 'submit', 'value' => 'Submit', 'callback' => [...]]] ).../CForm.php:31
50.0061366840{closure:/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/autoloader.php:15-43}( $class = 'Mos\\HTMLForm\\CFormElement' ).../CForm.php:86
60.0077367536include( '/home/saxon/teachers/com/mosstud/www/kod-exempel/cform/src/HTMLForm/CFormElement.php ).../autoloader.php:41
CForm Example: Using checkboxes

CForm Example: Using checkboxes


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