Skip to content

Commit

Permalink
fix: Hook not being removed
Browse files Browse the repository at this point in the history
  • Loading branch information
PROFeNoM committed Apr 5, 2024
1 parent 0d08bf6 commit da4b652
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function init()
if (!$constructorCalled) {
foreach (get_class_methods('Elastic\Elasticsearch\Traits\NamespaceTrait') as $method) {
$hook = function ($obj, $scope, $args, $ret) use ($integration, $method) {
\dd_untrace('Elastic\Elasticsearch\Traits\NamespaceTrait', $method);
\dd_untrace('Elastic\Elasticsearch\Client', $method);
$class = get_class($ret);
foreach (get_class_methods($ret) as $method) {
$integration->traceNamespaceMethod($class, $method);
Expand Down

0 comments on commit da4b652

Please sign in to comment.