{"action":"created","issue":{"url":"https://api.github.com/repos/phpstan/phpstan/issues/333","repository_url":"https://api.github.com/repos/phpstan/phpstan","labels_url":"https://api.github.com/repos/phpstan/phpstan/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/phpstan/phpstan/issues/333/comments","events_url":"https://api.github.com/repos/phpstan/phpstan/issues/333/events","html_url":"https://github.com/phpstan/phpstan/issues/333","id":235889100,"number":333,"title":"Number pseudotype is wrongly recognized","user":{"login":"jkuchar","id":133822,"avatar_url":"https://avatars0.githubusercontent.com/u/133822?v=3","gravatar_id":"","url":"https://api.github.com/users/jkuchar","html_url":"https://github.com/jkuchar","followers_url":"https://api.github.com/users/jkuchar/followers","following_url":"https://api.github.com/users/jkuchar/following{/other_user}","gists_url":"https://api.github.com/users/jkuchar/gists{/gist_id}","starred_url":"https://api.github.com/users/jkuchar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkuchar/subscriptions","organizations_url":"https://api.github.com/users/jkuchar/orgs","repos_url":"https://api.github.com/users/jkuchar/repos","events_url":"https://api.github.com/users/jkuchar/events{/privacy}","received_events_url":"https://api.github.com/users/jkuchar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-14T13:59:20Z","updated_at":"2017-06-14T14:09:59Z","closed_at":null,"body":"According to [php documentation](https://secure.php.net/manual/en/language.pseudo-types.php#language.types.number) pseudotype `numer` is equal to `int|float`. phpstan tries to find class number in namespace where class is defined.\r\n\r\nThis code does not pass phpstan validation as phpstan does not know what `number` is. (uses [brick/math](https://github.com/brick/math))\r\n```php\r\nBigDecimal::of(5)->plus(3);\r\n```\r\n\r\nTested on latest stable (0.7) Is that bug or feature?"},"comment":{"url":"https://api.github.com/repos/phpstan/phpstan/issues/comments/308443144","html_url":"https://github.com/phpstan/phpstan/issues/333#issuecomment-308443144","issue_url":"https://api.github.com/repos/phpstan/phpstan/issues/333","id":308443144,"user":{"login":"JanTvrdik","id":175109,"avatar_url":"https://avatars2.githubusercontent.com/u/175109?v=3","gravatar_id":"","url":"https://api.github.com/users/JanTvrdik","html_url":"https://github.com/JanTvrdik","followers_url":"https://api.github.com/users/JanTvrdik/followers","following_url":"https://api.github.com/users/JanTvrdik/following{/other_user}","gists_url":"https://api.github.com/users/JanTvrdik/gists{/gist_id}","starred_url":"https://api.github.com/users/JanTvrdik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanTvrdik/subscriptions","organizations_url":"https://api.github.com/users/JanTvrdik/orgs","repos_url":"https://api.github.com/users/JanTvrdik/repos","events_url":"https://api.github.com/users/JanTvrdik/events{/privacy}","received_events_url":"https://api.github.com/users/JanTvrdik/received_events","type":"User","site_admin":false},"created_at":"2017-06-14T14:09:59Z","updated_at":"2017-06-14T14:09:59Z","body":"`numer` pseudotype is not part of [phpDoc standard](https://www.phpdoc.org/docs/latest/guides/types.html). Just use `int|float`. It's more explicit and supported by most phpDoc related tools."}}
{"actor":{"display_login":"JanTvrdik"}}