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

When the call/usage is not found in allowIn, report error #59

Open
spaze opened this issue Feb 27, 2021 · 0 comments
Open

When the call/usage is not found in allowIn, report error #59

spaze opened this issue Feb 27, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@spaze
Copy link
Owner

spaze commented Feb 27, 2021

Given a configuration like this for example:

	disallowedFunctionCalls:
		-
			function: 'pcntl_*()'
			allowIn:
				- vendor/foo/bar/Baz.php

when any pcntl call is not found in vendor/foo/bar/Baz.php, report error and suggest removing the allowIn item to keep the config clean and up to date.

This is similar to what PHPStan reports when a ignoreErrors error wasn't hit.

@spaze spaze added the enhancement New feature or request label May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant