Since $controller is declared private, accessing it with static will lead to errors in possible sub-classes; you can either use self, or increase the visibility of $controller to at least protected.
Loading history...
29
30
if (get_class($controller) !== get_class($app->controller)) {