Skip to content

Profiler enable/disable has illogical behavior #60

@xaerobiont

Description

@xaerobiont

$profiler = new Profiler($logger);
$profiler->enable(false);

Expects that profiler is disabled, but it returns new disabled profiler instead, and old one still stays enabled.
I suggest to make enabled property mutable and switch it's value using method ->enable() instead of cloning profiler

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