{"action":"created","issue":{"url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/3094","repository_url":"https://api.github.com/repos/sebastianbergmann/phpunit","labels_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/3094/labels{/name}","comments_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/3094/comments","events_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/3094/events","html_url":"https://github.com/sebastianbergmann/phpunit/issues/3094","id":313932358,"number":3094,"title":"Faulty dependency constraint affecting getObjectForTrait (failure using --prefer-lowest)","user":{"login":"Bilge","id":470626,"avatar_url":"https://avatars1.githubusercontent.com/u/470626?v=4","gravatar_id":"","url":"https://api.github.com/users/Bilge","html_url":"https://github.com/Bilge","followers_url":"https://api.github.com/users/Bilge/followers","following_url":"https://api.github.com/users/Bilge/following{/other_user}","gists_url":"https://api.github.com/users/Bilge/gists{/gist_id}","starred_url":"https://api.github.com/users/Bilge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bilge/subscriptions","organizations_url":"https://api.github.com/users/Bilge/orgs","repos_url":"https://api.github.com/users/Bilge/repos","events_url":"https://api.github.com/users/Bilge/events{/privacy}","received_events_url":"https://api.github.com/users/Bilge/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-13T00:38:36Z","updated_at":"2018-04-13T02:25:40Z","closed_at":"2018-04-13T02:25:40Z","author_association":"CONTRIBUTOR","body":"| Q                   | A\r\n| --------------------| ---------------\r\n| PHPUnit version     | 7.1.2\r\n| PHP version         | 7.1.6\r\n| Installation Method | Composer\r\n\r\nA call to `getObjectForTrait()` works on PHPUnit 7.1.2, but fails when installing the same version with `composer up --prefer-lowest`. Following is the list of changed packages when prefer lowest is enabled.\r\n\r\n```\r\n$ composer up --prefer-lowest\r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\nPackage operations: 1 install, 10 updates, 3 removals\r\n  - Removing webmozart/assert (1.3.0)\r\n  - Removing phpdocumentor/type-resolver (0.4.0)\r\n  - Removing phpdocumentor/reflection-common (1.0.1)\r\n  - Updating scriptfusion/retry (1.1.1 => 1.1.0): Loading from cache\r\n  - Updating amphp/amp (v2.0.6 => v2.0.0): Loading from cache\r\n  - Updating psr/cache (1.0.1 => 1.0.0): Loading from cache\r\n  - Updating myclabs/deep-copy (1.7.0 => 1.6.1): Loading from cache\r\n  - Updating doctrine/instantiator (1.1.0 => 1.0.5): Loading from cache\r\n  - Installing dflydev/markdown (v1.0.0): Loading from cache\r\n  - Updating phpdocumentor/reflection-docblock (4.3.0 => 2.0.0): Loading from cache\r\n  - Updating phpspec/prophecy (1.7.5 => v1.7.0): Loading from cache\r\n  - Updating phpunit/php-file-iterator (1.4.5 => 1.4.3): Loading from cache\r\n  - Updating phpunit/php-code-coverage (6.0.3 => 6.0.1): Loading from cache\r\n  - Updating phpunit/phpunit-mock-objects (6.1.1 => 6.1.0): Loading from cache\r\nPackage dflydev/markdown is abandoned, you should avoid using it. Use michelf/php-markdown instead.\r\nWriting lock file\r\nGenerating autoload files\r\n```\r\n\r\nOverriding `phpunit/phpunit-mock-objects` with version `^6.1.1` fixes the issue.\r\n\r\n* Here is the [code used to reproduce the issue](https://github.com/ScriptFUSION/Porter/blob/c3652ec8433716739971e3135da507dd28170c38/test/Unit/Porter/PorterAwareTraitTest.php#L13).\r\n* Here is a [Travis test run that verifies the issue](https://travis-ci.org/ScriptFUSION/Porter/builds/365886879)."},"comment":{"url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/comments/381001818","html_url":"https://github.com/sebastianbergmann/phpunit/issues/3094#issuecomment-381001818","issue_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/3094","id":381001818,"user":{"login":"sebastianbergmann","id":25218,"avatar_url":"https://avatars1.githubusercontent.com/u/25218?v=4","gravatar_id":"","url":"https://api.github.com/users/sebastianbergmann","html_url":"https://github.com/sebastianbergmann","followers_url":"https://api.github.com/users/sebastianbergmann/followers","following_url":"https://api.github.com/users/sebastianbergmann/following{/other_user}","gists_url":"https://api.github.com/users/sebastianbergmann/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianbergmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianbergmann/subscriptions","organizations_url":"https://api.github.com/users/sebastianbergmann/orgs","repos_url":"https://api.github.com/users/sebastianbergmann/repos","events_url":"https://api.github.com/users/sebastianbergmann/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianbergmann/received_events","type":"User","site_admin":false},"created_at":"2018-04-13T02:25:40Z","updated_at":"2018-04-13T02:25:40Z","author_association":"OWNER","body":"I understand what `--prefer-lowest` does but I do not understand why people use it, makes no sense to me. Why would you not want the latest version of a component that is compatible with the version of the component that is required?\r\n\r\nAnyways, I merged your pull request."}}
{"actor":{"display_login":"sebastianbergmann"}}