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

Allow whitelisting class methods #51

@carlos-granados

Description

@carlos-granados

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions