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

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

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

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

Snider opened this issue Oct 17, 2017 · 0 comments

Comments

@Snider
Copy link
Owner

Snider commented Oct 17, 2017

in src/Api.php, line 315

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

                $url .= '?' . $params;
            }
        } else {
            return $this->error(
                'This API requires all calls to have params'
                . $this->debug ? ', you provided: ' . var_dump($params) : ''
            );
        }

        $context = stream_context_create($cParams);
        $fp = fopen($url, 'rb', false, $context);

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