You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 14, 2023. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
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 functionsThe text was updated successfully, but these errors were encountered: