Open picasso opened 7 years ago
@picasso Have tried testing the code in reverse?
if ( isset( $HTTP_RAW_POST_DATA ) ) {
return $HTTP_RAW_POST_DATA;
} else {
return fopen( 'php://input', 'rb' );
}
As the plugin just uses the PHPCompatibility library it is best to report the false positive there: https://github.com/wimg/PHPCompatibility
This is actually not a false positive as the variable is found in the code, even though used correctly. All the same, there is an issue open about the principle of these kind of warnings here: https://github.com/wimg/PHPCompatibility/issues/301
But looking at the lines 101 and 104 you see the following:
And the same for lines 109 and 112: