Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony security checker #358

Merged
merged 3 commits into from Mar 20, 2020

Conversation

SimonHeimberg
Copy link
Contributor

Contribution type

improvement

Description of change

Security checker can be configured to use the binary symfony (as recommended by https://github.com/FriendsOfPHP/security-advisories#checking-for-vulnerabilities).

@@ -91,6 +91,8 @@ public function execute()
if ($this->allowedWarnings != -1 && ($result->count() > $this->allowedWarnings)) {
$success = false;
}
} elseif (null === $warnings && $result) {
$this->builder->logWarning('invalid json: '.$result);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe throwing a RuntimeException (or another Exception) would be better.

Copy link
Member

@corpsee corpsee Mar 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimonHeimberg Yes, throwing a RuntimeException would be great.

@corpsee corpsee assigned SimonHeimberg and unassigned corpsee Mar 19, 2020
@corpsee corpsee merged commit e1d6ead into php-censor:master Mar 20, 2020
@corpsee
Copy link
Member

corpsee commented Mar 20, 2020

@SimonHeimberg 👍

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

Successfully merging this pull request may close these issues.

None yet

3 participants