{"action":"closed","issue":{"url":"https://api.github.com/repos/tobscure/json-api/issues/71","labels_url":"https://api.github.com/repos/tobscure/json-api/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/tobscure/json-api/issues/71/comments","events_url":"https://api.github.com/repos/tobscure/json-api/issues/71/events","html_url":"https://github.com/tobscure/json-api/issues/71","id":119719017,"number":71,"title":"Parameters' getLimit returns string","user":{"login":"byCedric","id":1203991,"avatar_url":"https://avatars.githubusercontent.com/u/1203991?v=3","gravatar_id":"","url":"https://api.github.com/users/byCedric","html_url":"https://github.com/byCedric","followers_url":"https://api.github.com/users/byCedric/followers","following_url":"https://api.github.com/users/byCedric/following{/other_user}","gists_url":"https://api.github.com/users/byCedric/gists{/gist_id}","starred_url":"https://api.github.com/users/byCedric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byCedric/subscriptions","organizations_url":"https://api.github.com/users/byCedric/orgs","repos_url":"https://api.github.com/users/byCedric/repos","events_url":"https://api.github.com/users/byCedric/events{/privacy}","received_events_url":"https://api.github.com/users/byCedric/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-01T13:38:20Z","updated_at":"2015-12-02T13:45:20Z","closed_at":"2015-12-02T13:45:20Z","body":"I was implementing the package at _yet_ another project, until I noticed that the [`Parameters` own `getLimit`](https://github.com/tobscure/json-api/blob/v0.2.1/src/Parameters.php#L101) returns a string. Yes, it does state in the [docblock](https://github.com/tobscure/json-api/blob/v0.2.1/src/Parameters.php#L99) that it _should_ return a string but I find this quite confusing. Mostly because within the `LinksTrait` `addPaginationLinks` the limit is used as an integer...\r\n\r\nMy main point is should the [`getLimit` method within `Parameters`](https://github.com/tobscure/json-api/blob/v0.2.1/src/Parameters.php#L101) not return integer, and **0** by default instead of **''**."}}