Skip to content

Commit

Permalink
Debugging Automated Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Fenikkusu committed Feb 6, 2025
1 parent 2b2c62e commit 0a3dc09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phalcon/Dispatcher/AbstractDispatcher.zep
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ abstract class AbstractDispatcher extends AbstractInjectionAware implements Disp
let altAction = actionMethod;
let altParams = params;

if this->eventsManager instanceof ManagerInterface {
if this->eventsManager !== null && this->eventsManager instanceof ManagerInterface {
let observer = <Registry> this->getDi()->get(
"Phalcon\Support\Registry",
[[
Expand Down Expand Up @@ -190,7 +190,7 @@ abstract class AbstractDispatcher extends AbstractInjectionAware implements Disp
array_values(altParams)
);

if this->eventsManager instanceof ManagerInterface {
if this->eventsManager !== null && this->eventsManager instanceof ManagerInterface {
let observer["result"] = result;

this->eventsManager->fire(
Expand Down

0 comments on commit 0a3dc09

Please sign in to comment.