{"action":"created","issue":{"url":"https://api.github.com/repos/moneyphp/money/issues/176","repository_url":"https://api.github.com/repos/moneyphp/money","labels_url":"https://api.github.com/repos/moneyphp/money/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/moneyphp/money/issues/176/comments","events_url":"https://api.github.com/repos/moneyphp/money/issues/176/events","html_url":"https://github.com/moneyphp/money/issues/176","id":137001686,"number":176,"title":"Amount must be an integer (Bug)?","user":{"login":"superdummy","id":10488988,"avatar_url":"https://avatars.githubusercontent.com/u/10488988?v=3","gravatar_id":"","url":"https://api.github.com/users/superdummy","html_url":"https://github.com/superdummy","followers_url":"https://api.github.com/users/superdummy/followers","following_url":"https://api.github.com/users/superdummy/following{/other_user}","gists_url":"https://api.github.com/users/superdummy/gists{/gist_id}","starred_url":"https://api.github.com/users/superdummy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdummy/subscriptions","organizations_url":"https://api.github.com/users/superdummy/orgs","repos_url":"https://api.github.com/users/superdummy/repos","events_url":"https://api.github.com/users/superdummy/events{/privacy}","received_events_url":"https://api.github.com/users/superdummy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-28T03:46:03Z","updated_at":"2016-02-28T15:17:59Z","closed_at":"2016-02-28T15:17:59Z","body":"Thanks for the great library!\r\n\r\nI always get the error below (using the 3.0 alpha):\r\n\r\n`Amount must be an integer`\r\n`in Money.php line 54`\r\n`at Money->__construct('3500.0000000000', object(Currency)) in Money.php line 224`\r\n\r\nCode to reproduce:\r\n`$base = Money::EUR(2500);`\r\n`$toadd = new Money(1000, new Currency('EUR'));`\r\n`$added = $base->add($toadd); `\r\n`dd($added);`\r\n\r\nIs this a bug or what am I doing completely wrong? (Note dd() is a vardump from laravel)\r\n\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/moneyphp/money/issues/comments/189890521","html_url":"https://github.com/moneyphp/money/issues/176#issuecomment-189890521","issue_url":"https://api.github.com/repos/moneyphp/money/issues/176","id":189890521,"user":{"login":"superdummy","id":10488988,"avatar_url":"https://avatars.githubusercontent.com/u/10488988?v=3","gravatar_id":"","url":"https://api.github.com/users/superdummy","html_url":"https://github.com/superdummy","followers_url":"https://api.github.com/users/superdummy/followers","following_url":"https://api.github.com/users/superdummy/following{/other_user}","gists_url":"https://api.github.com/users/superdummy/gists{/gist_id}","starred_url":"https://api.github.com/users/superdummy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdummy/subscriptions","organizations_url":"https://api.github.com/users/superdummy/orgs","repos_url":"https://api.github.com/users/superdummy/repos","events_url":"https://api.github.com/users/superdummy/events{/privacy}","received_events_url":"https://api.github.com/users/superdummy/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T15:17:59Z","updated_at":"2016-02-28T15:17:59Z","body":"Thanks so much for your help and even more for the great library! Yes with dev-master its working! Thanks!"}}