Skip to content

Commit dcb51b5

Browse files
committed
Fix phpstan
1 parent f6a0902 commit dcb51b5

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

yii2-adapter/legacy/web/Controller.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,6 @@ public function init(): void
159159

160160
public function registerCsrfValidationExclusion(): void
161161
{
162-
if (!isset($this->id, $this->module)) {
163-
return;
164-
}
165-
166162
PreventRequestForgery::except($this->csrfValidationExclusionUris());
167163
}
168164

0 commit comments

Comments
 (0)