Skip to content
This repository was archived by the owner on Apr 10, 2021. It is now read-only.

[Insight] PHP debug statements found - in src/Api.php, line 327 #12

Open
Snider opened this issue Oct 17, 2017 · 0 comments
Open

[Insight] PHP debug statements found - in src/Api.php, line 327 #12

Snider opened this issue Oct 17, 2017 · 0 comments

Comments

@Snider
Copy link
Owner

Snider commented Oct 17, 2017

in src/Api.php, line 327

var_dump() should only be used for debug, and not committed to the source code repository.

            $res = false;
        } else {
            if ($this->debug) {
                $meta = stream_get_meta_data($fp);
                $this->error(
                    'Var dump of HTTP headers' . var_dump($meta['wrapper_data'])
                );
            }

            $res = stream_get_contents($fp);
        }

Posted from SensioLabsInsight

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant