Skip to content
This repository has been archived by the owner on Jan 14, 2023. It is now read-only.

Allow whitelisting class methods #51

Open
carlos-granados opened this issue Apr 24, 2020 · 0 comments · May be fixed by #52
Open

Allow whitelisting class methods #51

carlos-granados opened this issue Apr 24, 2020 · 0 comments · May be fixed by #52

Comments

@carlos-granados
Copy link

In most modern PHP applications the majority of class fields will be private or protected and there will be a set of getters to access those fields. This makes it difficult to use expressions in snapshots or logpoints because many times the information that interests you will be held in a private or protected field, so you will not be able to use a expression like $object->privateMember because you will not have access. By default you cannot call any method in an object and there is no way to whitelist method calls.

We should have a way to whitelist method calls so that we can use expressions like $object->getPrivateMember(). By default no method call should be allowed but if we know that some of them are safe we should be able to whitelist them, the same way that we do for generic functions

@carlos-granados carlos-granados linked a pull request Apr 24, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant