{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/5905","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/5905/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/5905/comments","events_url":"https://api.github.com/repos/composer/composer/issues/5905/events","html_url":"https://github.com/composer/composer/issues/5905","id":191800461,"number":5905,"title":"Composer doesn't get PHP Version correctly","user":{"login":"LKDevelopment","id":4281581,"avatar_url":"https://avatars.githubusercontent.com/u/4281581?v=3","gravatar_id":"","url":"https://api.github.com/users/LKDevelopment","html_url":"https://github.com/LKDevelopment","followers_url":"https://api.github.com/users/LKDevelopment/followers","following_url":"https://api.github.com/users/LKDevelopment/following{/other_user}","gists_url":"https://api.github.com/users/LKDevelopment/gists{/gist_id}","starred_url":"https://api.github.com/users/LKDevelopment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LKDevelopment/subscriptions","organizations_url":"https://api.github.com/users/LKDevelopment/orgs","repos_url":"https://api.github.com/users/LKDevelopment/repos","events_url":"https://api.github.com/users/LKDevelopment/events{/privacy}","received_events_url":"https://api.github.com/users/LKDevelopment/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-26T11:05:51Z","updated_at":"2016-11-26T12:09:15Z","closed_at":"2016-11-26T11:59:16Z","body":"My `composer.json`:\r\n\r\n```json\r\nhttps://github.com/CachetHQ/Cachet/blob/v2.3.10/composer.json\r\n```\r\n\r\nOutput of `composer diagnose`:\r\n\r\n```\r\nhecking composer.json: WARNING\r\nrequire.laravel/framework : exact version constraints (5.2.39) should be avoided if the package follows semantic versioning\r\nChecking platform settings: OK\r\nChecking git settings: OK\r\nChecking http connectivity to packagist: OK\r\nChecking https connectivity to packagist: OK\r\nChecking github.com rate limit: OK\r\nChecking disk free space: OK\r\nChecking pubkeys:\r\nTags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642\r\nDev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952\r\nOK\r\nChecking composer version: OK\r\n```\r\n\r\nWhen I run this command:\r\n\r\n```\r\ncomposer require spatie/laravel-uptime-monitor\r\n```\r\n\r\nI get the following output:\r\n\r\n```\r\n  [InvalidArgumentException]\r\n  Could not find package spatie/laravel-uptime-monitor at any version matching your PHP version 5.5.9.0\r\n```\r\n\r\nBut when i run php -v i get:\r\n```\r\nPHP 7.0.13-1+deb.sury.org~xenial+1 (cli) ( NTS )\r\n```\r\n\r\nThe System is an Ubuntu system with php7 setup."},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/263059997","html_url":"https://github.com/composer/composer/issues/5905#issuecomment-263059997","issue_url":"https://api.github.com/repos/composer/composer/issues/5905","id":263059997,"user":{"login":"jbrooksuk","id":246103,"avatar_url":"https://avatars.githubusercontent.com/u/246103?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrooksuk","html_url":"https://github.com/jbrooksuk","followers_url":"https://api.github.com/users/jbrooksuk/followers","following_url":"https://api.github.com/users/jbrooksuk/following{/other_user}","gists_url":"https://api.github.com/users/jbrooksuk/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrooksuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrooksuk/subscriptions","organizations_url":"https://api.github.com/users/jbrooksuk/orgs","repos_url":"https://api.github.com/users/jbrooksuk/repos","events_url":"https://api.github.com/users/jbrooksuk/events{/privacy}","received_events_url":"https://api.github.com/users/jbrooksuk/received_events","type":"User","site_admin":false},"created_at":"2016-11-26T12:09:15Z","updated_at":"2016-11-26T12:09:15Z","body":"Please note that from v2.4 we've already removed this config; https://github.com/CachetHQ/Cachet/blob/2.4/composer.json"}}
{"actor":{"display_login":"jbrooksuk"}}