chore(phpstan): remove redundant dynamicConstantNames

+ update quality tools
This commit is contained in:
Yassine Doghri 2023-09-23 14:27:40 +00:00
commit 2dd9cc9ef5
18 changed files with 110 additions and 110 deletions

View file

@ -30,7 +30,7 @@ class UserController extends BaseController
return $this->{$method}();
}
if ($this->user = (new UserModel())->find($params[0])) {
if (($this->user = (new UserModel())->find($params[0])) instanceof User) {
return $this->{$method}();
}