PressForward / pressforward

PressForward is a free plugin that provides an editorial workflow for content aggregation and curation within the WordPress dashboard. It is designed for bloggers and editorial teams who wish to collect, discuss, and share content from a variety of sources on the open web.
GNU Affero General Public License v3.0
120 stars 22 forks source link

Fix "functions inspecting arguments" PHP compatibility notices. #1058

Closed boonebgorges closed 3 months ago

boonebgorges commented 4 years ago

Functions like debug_backtrace() and func_get_args() must be run before any other code is run that modifies the values of the function parameters, since PHP 7.0. See eg https://www.php.net/manual/en/function.func-get-arg.php#refsect1-function.func-get-arg-notes.

In the case of the FiveFiltersReadability library, I could see that there was no way for the values to be modified, so I added a phpcs:ignore comment instead of making a code change.

boonebgorges commented 3 months ago

This has been fixed elsewhere.