• Resolved Jonathan

    (@iohnatan)


    hi!

    ParseError: syntax error, unexpected ‘)’
    File “/wp-content/plugins/website-file-changes-monitor/includes/class-wfcm-scan-results-email.php”, line 272

    array_merge() is a function so it cant have a comma at the end

    https://prntscr.com/NgL8IeUUqEeM

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author robertabela

    (@robert681)

    Hello @iohnatan

    Thank you for trying our plugin.

    What version of WordPress and PHP are you running please?

    Thread Starter Jonathan

    (@iohnatan)

    WP version: 6.0.1
    PHP Version 7.2.34

    thanks

    Thread Starter Jonathan

    (@iohnatan)

    my bad, In PHP 7.3, trailing commas in function calls is a valid syntax.

    but maybe you could remove it for people with lower PHP versions.
    or set the required minimum version to 7.3

    thank you

    Plugin Author robertabela

    (@robert681)

    Very good point @iohnatan

    In this case, it is easier and more practical to raise the minimum PHP version required to 7.3. Thank you for your cooperation.

    Should you have any other questions, please do not hesitate to ask.

    Have a great weekend.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘syntax error, unexpected ‘)’’ is closed to new replies.