Bug #21953 Version Retired

PHP7 channel form api method signature

Version: 2.11.1 Reporter: GDmac - expocom

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

PHP7 reports a warning when a class that extends another class and an overridden method does not have the same signature.

e.g. channel_form (EE 2.11.2)

A PHP Error was encountered
Severity: Warning
Message: Declaration of Api_channel_form_channel_entries::_prepare_data(&$data, &$mod_data) should be compatible with Api_channel_entries::_prepare_data(&$data, &$mod_data, $autosave = false)
Filename: api/Api_channel_form_channel_entries.php
Line Number: 5

(p.s. the channel_form _prepare… method is declared public, not for channel_entries APIi)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases