{"action":"opened","issue":{"url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/656","repository_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper","labels_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/656/labels{/name}","comments_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/656/comments","events_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/656/events","html_url":"https://github.com/barryvdh/laravel-ide-helper/issues/656","id":316202221,"number":656,"title":"Parameter of `nullable` of Fluent","user":{"login":"jyhsu2000","id":6276648,"avatar_url":"https://avatars2.githubusercontent.com/u/6276648?v=4","gravatar_id":"","url":"https://api.github.com/users/jyhsu2000","html_url":"https://github.com/jyhsu2000","followers_url":"https://api.github.com/users/jyhsu2000/followers","following_url":"https://api.github.com/users/jyhsu2000/following{/other_user}","gists_url":"https://api.github.com/users/jyhsu2000/gists{/gist_id}","starred_url":"https://api.github.com/users/jyhsu2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyhsu2000/subscriptions","organizations_url":"https://api.github.com/users/jyhsu2000/orgs","repos_url":"https://api.github.com/users/jyhsu2000/repos","events_url":"https://api.github.com/users/jyhsu2000/events{/privacy}","received_events_url":"https://api.github.com/users/jyhsu2000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-20T09:50:19Z","updated_at":"2018-04-20T09:50:19Z","closed_at":null,"author_association":"NONE","body":"In `_ide_helper.php`, section of Fluent,\r\nthere is a line of `nullable`,\r\n```\r\n@method Fluent nullable() Add the nullable modifier\r\n```\r\nBut in the document of Laravel (5.5+), \r\n[Column Modifiers](https://laravel.com/docs/5.6/migrations#column-modifiers) describe that `nullable` can be used with a boolean parameter\r\n\r\n|Modifier|Description|\r\n|---|---|\r\n|`->nullable($value = true)`|Allows (by default) NULL values to be inserted into the column|\r\n\r\nWhen I use nullable with parameter (like `->nullable(false)`), IDE shows the following warning\r\n```\r\nMethod call uses 1 parameters, but method signature uses 0 parameters\r\n```\r\n\r\n![screenshot_20180420_174435](https://user-images.githubusercontent.com/6276648/39044588-3304299e-44c3-11e8-86f6-13a3fcdf99d7.png)\r\n\r\nCould you make it add the parameter to `nullable`?\r\n(when generating `_ide_helper.php` using `ide-helper:generate`)"}}
{"actor":{"display_login":"jyhsu2000"}}