PHP7 - Error because of public function validate()
Permalink Browser Info Environment
Hi shahroq,
i just want to let you know - and customers who are running PHP7 - that there is a small modification of an argument to be done in whale_grid_gallery/blocks\whale_grid_gallery/controller.php to avoid the following errror message on Concrete5 5.7.5.6 and PHP7:
The solution is, in whale_grid_gallery/blocks\whale_grid_gallery/controller.php, change:
to
Cheers,
Michael
i just want to let you know - and customers who are running PHP7 - that there is a small modification of an argument to be done in whale_grid_gallery/blocks\whale_grid_gallery/controller.php to avoid the following errror message on Concrete5 5.7.5.6 and PHP7:
Declaration of Concrete\Package\WhaleGridGallery\Block\WhaleGridGallery\Controller::validate() should be compatible with Concrete\Core\Block\BlockController::validate($args)
The solution is, in whale_grid_gallery/blocks\whale_grid_gallery/controller.php, change:
public function validate()
to
public function validate($args)
Cheers,
Michael
Type: | Discussion |
---|---|
Status: | In Progress |
Thank you!
Just a note, in case you are also using:
in one of your add-ons,
it should be:
for PHP7.
At least these are the two that i know of.
Just a note, in case you are also using:
public function registerViewAssets()
in one of your add-ons,
it should be:
public function registerViewAssets($outputContent = '')
for PHP7.
At least these are the two that i know of.
Thank you, i will check that too.
ThanX for the hint, i changed that to all related add-on on our master copies, that will be available on next update of each add-on.
Cheers,