{"action":"opened","issue":{"url":"https://api.github.com/repos/pheryjs/phery/issues/25","labels_url":"https://api.github.com/repos/pheryjs/phery/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/pheryjs/phery/issues/25/comments","events_url":"https://api.github.com/repos/pheryjs/phery/issues/25/events","html_url":"https://github.com/pheryjs/phery/issues/25","id":94817467,"number":25,"title":"Parameter type is lost when sending from Javascript to PHP","user":{"login":"holtkamp","id":776405,"avatar_url":"https://avatars.githubusercontent.com/u/776405?v=3","gravatar_id":"","url":"https://api.github.com/users/holtkamp","html_url":"https://github.com/holtkamp","followers_url":"https://api.github.com/users/holtkamp/followers","following_url":"https://api.github.com/users/holtkamp/following{/other_user}","gists_url":"https://api.github.com/users/holtkamp/gists{/gist_id}","starred_url":"https://api.github.com/users/holtkamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holtkamp/subscriptions","organizations_url":"https://api.github.com/users/holtkamp/orgs","repos_url":"https://api.github.com/users/holtkamp/repos","events_url":"https://api.github.com/users/holtkamp/events{/privacy}","received_events_url":"https://api.github.com/users/holtkamp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-13T21:37:16Z","updated_at":"2015-07-13T21:37:16Z","closed_at":null,"body":"For some reason, when trying to pass an array of integers, booleans and strings to PHP using Phery, they all end up to be strings:\r\n\r\n```html\r\n<input type=\"text\"\r\n  id=\"elementID\"\r\n  value=\"10\" \r\n  data-parameter-integer=\"10\"\r\n  data-parameter-boolean-true=\"true\"\r\n  data-parameter-boolean-false=\"false\"\r\n  data-parameter-string=\"string\" />\r\n```\r\n\r\n```javascript\r\n$(\"#elementID\").change(function() {\r\n\tconsole.log($(this).data()); //Shows an object\r\n\tphery.remote(\"remoteFunction\", $(this).data() );\r\n} );\r\n```\r\n\r\nWhen outputting the parameters received by PHP, this results in:\r\n\r\n<pre>array(4) {\r\n  [\"parameterInteger\"] => string(2) \"10\"\r\n  [\"parameterBooleanTrue\"] => string(4) \"true\"\r\n  [\"parameterBooleanFalse\"] => string(5) \"false\"\r\n  [\"parameterString\"] => string(6) \"string\"\r\n}\r\n</pre>\r\n\r\nThe [phery.remote()](https://github.com/pheryjs/phery#pheryremotefunction_name-args-attr-direct_call) and [jquery.data()](http://api.jquery.com/data/#data-html5) documentation clearly indicate this approach should work and the parameter types should be preserved in PHP. Any idea why the values are converted to string? Maybe because they are sent as POST / application/x-www-form-urlencoded? I had a look at the involved `functions.per_data() ` function, and that seems to be responsible to do what I expect..."}}