{"action":"opened","issue":{"url":"https://api.github.com/repos/nunomaduro/larastan/issues/198","repository_url":"https://api.github.com/repos/nunomaduro/larastan","labels_url":"https://api.github.com/repos/nunomaduro/larastan/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/nunomaduro/larastan/issues/198/comments","events_url":"https://api.github.com/repos/nunomaduro/larastan/issues/198/events","html_url":"https://github.com/nunomaduro/larastan/issues/198","id":377647801,"node_id":"MDU6SXNzdWUzNzc2NDc4MDE=","number":198,"title":"dynamicWhere() expects string, int|null given.","user":{"login":"loic-lopez","id":17724398,"node_id":"MDQ6VXNlcjE3NzI0Mzk4","avatar_url":"https://avatars1.githubusercontent.com/u/17724398?v=4","gravatar_id":"","url":"https://api.github.com/users/loic-lopez","html_url":"https://github.com/loic-lopez","followers_url":"https://api.github.com/users/loic-lopez/followers","following_url":"https://api.github.com/users/loic-lopez/following{/other_user}","gists_url":"https://api.github.com/users/loic-lopez/gists{/gist_id}","starred_url":"https://api.github.com/users/loic-lopez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loic-lopez/subscriptions","organizations_url":"https://api.github.com/users/loic-lopez/orgs","repos_url":"https://api.github.com/users/loic-lopez/repos","events_url":"https://api.github.com/users/loic-lopez/events{/privacy}","received_events_url":"https://api.github.com/users/loic-lopez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-06T00:54:20Z","updated_at":"2018-11-06T00:54:20Z","closed_at":null,"author_association":"NONE","body":"- Larastan Version: 0.3.8\r\n- `--level` used: 1\r\n\r\n### Description:\r\nThrow this error:\r\n```bash\r\nParameter #1 $parameters of static method Illuminate\\Database\\Query\\Builder::dynamicWhere() expects string, int|null given.\r\n```\r\n### Laravel code where the issue was found:\r\n```php\r\n/**\r\n* Display the specified resource.\r\n*\r\n* @return \\Illuminate\\Http\\JsonResponse\r\n*/\r\npublic function show()\r\n{\r\n    return $this->ok(UserProfile::whereId(Auth::id())->first());\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"loic-lopez"}}