Skip to content

Commit

Permalink
RoutingPanel: missing link to presenter class (#329)
Browse files Browse the repository at this point in the history
RoutingPanel displays name of current presenter with current action method and link to presenter class file in IDE. In case that method of current presenter doesnt exists - this link is missing. Proposed change of code fixes this small bug.
  • Loading branch information
mildabre committed May 12, 2024
1 parent e908315 commit 076493e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Bridges/ApplicationTracy/RoutingPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ private function findSource(): \ReflectionClass|\ReflectionMethod|string|null
if (isset($params[Presenter::SignalKey])) {
return $rc->getSignalMethod($params[Presenter::SignalKey]);
} elseif (isset($params[Presenter::ActionKey])) {
return $rc->getActionRenderMethod($params[Presenter::ActionKey]);
$method = $rc->getActionRenderMethod($params[Presenter::ActionKey]);
if($method){
return $method;
}
}
}

Expand Down

0 comments on commit 076493e

Please sign in to comment.