Skip to content

Commit

Permalink
There are now multiple things where disallowing params makes no sense
Browse files Browse the repository at this point in the history
  • Loading branch information
spaze committed Dec 19, 2022
1 parent b587547 commit 9b53e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -306,7 +306,7 @@ The function or method names support [fnmatch()](https://www.php.net/function.fn

### Allow with specified parameters only

You can also narrow down the allowed items when called with some parameters (doesn't apply to constants for obvious reasons). For example, you want to disallow calling `print_r()` but want to allow `print_r(..., true)`.
You can also narrow down the allowed items when called with some parameters (applies only to disallowed method, static & function calls, for obvious reasons). For example, you want to disallow calling `print_r()` but want to allow `print_r(..., true)`.
This can be done with optional `allowParamsInAllowed` or `allowParamsAnywhere` configuration keys:

```neon
Expand Down

0 comments on commit 9b53e1f

Please sign in to comment.