Skip to content

Commit

Permalink
Update Events.php
Browse files Browse the repository at this point in the history
@yurabakhtin Remove the `Controller` to avoid crashing if controllers extending `yii\rest\Controller`
  • Loading branch information
marc-farre authored Aug 27, 2021
1 parent 733fa1e commit d11dd35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static function onBeforeAction($event)
* @param $controller Controller
* @return bool
*/
protected static function isImpersonateAction(Controller $controller): bool
protected static function isImpersonateAction($controller): bool
{
return ($controller instanceof AdminUserController) &&
isset($controller->action) &&
Expand Down

0 comments on commit d11dd35

Please sign in to comment.