Skip to content

Fatal error: Using method return value in write context #8

@PhantomWatson

Description

@PhantomWatson

Using this plugin, I'm getting the following error:

Fatal error: Can't use method return value in write context in C:\cakephp\vendor\cake17\cakephp-recaptcha\src\View\Helper\RecaptchaHelper.php on line 64

That line is

if (empty($this->config('lang'))) {

and the error is corrected if that's changed to

$lang = $this->config('lang');
if (empty($lang)) {

This is due to a limitation of using empty() in versions of PHP before 5.5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions