From df4b905987314b1901b6b3f8f3a61aafb3d6d3c2 Mon Sep 17 00:00:00 2001 From: Jeff Widman Date: Wed, 25 Jan 2023 22:42:25 +0000 Subject: [PATCH] Update test fixture transitive dep to be php 8 compatible ``` [dependabot-core-dev] ~/dependabot-core/composer $ DEBUG_HELPERS=true rspec ./spec/dependabot/composer/update_checker_spec.rb:717 Run options: include {:locations=>{"./spec/dependabot/composer/update_checker_spec.rb"=>[717]}} Randomized with seed 14137 php -d memory_limit=-1 /opt/composer/v2/bin/run {"error":"Your requirements could not be resolved to an installable set of packages.\n Problem 1\n - doctrine\/instantiator 1.0.5 requires php >=5.3,<8.0-DEV -> your php version (8.2.1) does not satisfy that requirement.\n - phpunit\/phpunit 5.1.3 requires phpunit\/phpunit-mock-objects >=3.0.5 -> satisfiable by phpunit\/phpunit-mock-objects[3.0.6].\n - phpunit\/phpunit-mock-objects 3.0.6 requires doctrine\/instantiator ^1.0.2 -> satisfiable by doctrine\/instantiator[1.0.5].\n - phpunit\/phpunit is locked to version 5.1.3 and an update of this package was not requested.\n"} ``` `doctrine/instantiator` is an indirect dep, so fine to bump w/o affecting the unit test. So I ran `composer update doctrine/instantiator` to only bump that dep (and any pins it required bumping) and then committing the results. The test now passes. --- .../fixtures/projects/autoload/composer.lock | 106 ++++++++++-------- 1 file changed, 60 insertions(+), 46 deletions(-) diff --git a/composer/spec/fixtures/projects/autoload/composer.lock b/composer/spec/fixtures/projects/autoload/composer.lock index 9779c178ed6e..c666e336e089 100644 --- a/composer/spec/fixtures/projects/autoload/composer.lock +++ b/composer/spec/fixtures/projects/autoload/composer.lock @@ -1,11 +1,10 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "hash": "32616fa6ae908950c725bd482153e188", - "content-hash": "6a307cebf70fea6e03d93d00c2d69920", + "content-hash": "35f84202ad25d09f1311c7afc05db63c", "packages": [ { "name": "doctrine/inflector", @@ -72,7 +71,7 @@ "singularize", "string" ], - "time": "2015-11-06 14:35:42" + "time": "2015-11-06T14:35:42+00:00" }, { "name": "erusev/parsedown", @@ -111,7 +110,7 @@ "markdown", "parser" ], - "time": "2015-10-04 16:44:32" + "time": "2015-10-04T16:44:32+00:00" }, { "name": "illuminate/contracts", @@ -153,7 +152,7 @@ ], "description": "The Illuminate Contracts package.", "homepage": "http://laravel.com", - "time": "2015-12-19 14:25:38" + "time": "2015-12-19T14:25:38+00:00" }, { "name": "illuminate/support", @@ -209,40 +208,38 @@ ], "description": "The Illuminate Support package.", "homepage": "http://laravel.com", - "time": "2016-01-07 11:02:28" + "time": "2016-01-07T11:02:28+00:00" } ], "packages-dev": [ { "name": "doctrine/instantiator", - "version": "1.0.5", + "version": "1.5.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", "shasum": "" }, "require": { - "php": ">=5.3,<8.0-DEV" + "php": "^7.1 || ^8.0" }, "require-dev": { - "athletic/athletic": "~0.1.8", + "doctrine/coding-standard": "^9 || ^11", "ext-pdo": "*", "ext-phar": "*", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~2.0" + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.30 || ^5.4" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, "autoload": { "psr-4": { "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" @@ -256,16 +253,34 @@ { "name": "Marco Pivetta", "email": "ocramius@gmail.com", - "homepage": "http://ocramius.github.com/" + "homepage": "https://ocramius.github.io/" } ], "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://github.com/doctrine/instantiator", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", "keywords": [ "constructor", "instantiate" ], - "time": "2015-06-14 21:17:01" + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.5.0" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], + "time": "2022-12-30T00:15:36+00:00" }, { "name": "myclabs/deep-copy", @@ -307,7 +322,7 @@ "object", "object graph" ], - "time": "2015-11-07 22:20:37" + "time": "2015-11-07T22:20:37+00:00" }, { "name": "phpdocumentor/reflection-docblock", @@ -356,7 +371,7 @@ "email": "mike.vanriel@naenius.com" } ], - "time": "2015-02-03 12:10:50" + "time": "2015-02-03T12:10:50+00:00" }, { "name": "phpspec/prophecy", @@ -416,7 +431,7 @@ "spy", "stub" ], - "time": "2015-08-13 10:07:40" + "time": "2015-08-13T10:07:40+00:00" }, { "name": "phpunit/php-code-coverage", @@ -478,7 +493,7 @@ "testing", "xunit" ], - "time": "2015-11-12 21:08:20" + "time": "2015-11-12T21:08:20+00:00" }, { "name": "phpunit/php-file-iterator", @@ -525,7 +540,7 @@ "filesystem", "iterator" ], - "time": "2015-06-21 13:08:43" + "time": "2015-06-21T13:08:43+00:00" }, { "name": "phpunit/php-text-template", @@ -566,7 +581,7 @@ "keywords": [ "template" ], - "time": "2015-06-21 13:50:34" + "time": "2015-06-21T13:50:34+00:00" }, { "name": "phpunit/php-timer", @@ -607,7 +622,7 @@ "keywords": [ "timer" ], - "time": "2015-06-21 08:01:12" + "time": "2015-06-21T08:01:12+00:00" }, { "name": "phpunit/php-token-stream", @@ -656,7 +671,7 @@ "keywords": [ "tokenizer" ], - "time": "2015-09-15 10:49:45" + "time": "2015-09-15T10:49:45+00:00" }, { "name": "phpunit/phpunit", @@ -730,7 +745,7 @@ "testing", "xunit" ], - "time": "2015-12-10 07:54:54" + "time": "2015-12-10T07:54:54+00:00" }, { "name": "phpunit/phpunit-mock-objects", @@ -786,7 +801,7 @@ "mock", "xunit" ], - "time": "2015-12-08 08:47:06" + "time": "2015-12-08T08:47:06+00:00" }, { "name": "sebastian/comparator", @@ -850,7 +865,7 @@ "compare", "equality" ], - "time": "2015-07-26 15:48:44" + "time": "2015-07-26T15:48:44+00:00" }, { "name": "sebastian/diff", @@ -902,7 +917,7 @@ "keywords": [ "diff" ], - "time": "2015-12-08 07:14:41" + "time": "2015-12-08T07:14:41+00:00" }, { "name": "sebastian/environment", @@ -952,7 +967,7 @@ "environment", "hhvm" ], - "time": "2015-12-02 08:37:27" + "time": "2015-12-02T08:37:27+00:00" }, { "name": "sebastian/exporter", @@ -1018,7 +1033,7 @@ "export", "exporter" ], - "time": "2015-06-21 07:55:53" + "time": "2015-06-21T07:55:53+00:00" }, { "name": "sebastian/global-state", @@ -1069,7 +1084,7 @@ "keywords": [ "global state" ], - "time": "2015-10-12 03:26:01" + "time": "2015-10-12T03:26:01+00:00" }, { "name": "sebastian/recursion-context", @@ -1122,7 +1137,7 @@ ], "description": "Provides functionality to recursively process PHP variables", "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2015-11-11 19:50:13" + "time": "2015-11-11T19:50:13+00:00" }, { "name": "sebastian/resource-operations", @@ -1164,7 +1179,7 @@ ], "description": "Provides a list of PHP built-in functions that operate on resources", "homepage": "https://www.github.com/sebastianbergmann/resource-operations", - "time": "2015-07-28 20:34:47" + "time": "2015-07-28T20:34:47+00:00" }, { "name": "sebastian/version", @@ -1199,7 +1214,7 @@ ], "description": "Library that helps with managing the version number of Git-hosted PHP projects", "homepage": "https://github.com/sebastianbergmann/version", - "time": "2015-06-21 13:59:46" + "time": "2015-06-21T13:59:46+00:00" }, { "name": "symfony/yaml", @@ -1248,7 +1263,7 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2015-12-26 13:39:53" + "time": "2015-12-26T13:39:53+00:00" } ], "aliases": [], @@ -1256,8 +1271,7 @@ "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, - "platform": { - "php": ">=5.6.0" - }, - "platform-dev": [] + "platform": [], + "platform-dev": [], + "plugin-api-version": "2.3.0" }