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

Allow ink function to run on each redacted field individually #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

joe-pritchard
Copy link

I've made a slight modification so that the ink function is called each time a field is redacted instead of being called once when set (which would basically mean the developer had to run the entire redaction on their own copy of the data?)

I've also added a note about this option to the readme, updated the test, and taken the liberty of upgrading the supported php versions in composer.json

Instead of calling the ink value if it's callable when the property is set, instead call it when actually redacting a value, so that a dynamic redacted value can be applied for each key in the array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant