diff --git a/composer.json b/composer.json index 7f78ebcd9f..f07c3d542e 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ } ], "require": { - "php": "^7.2", + "php": "^7.3", "api-clients/appveyor": "dev-master", "api-clients/client-services": "^1.4", "api-clients/foundation": "^1.0", @@ -49,7 +49,7 @@ "config": { "sort-packages": true, "platform": { - "php": "7.2" + "php": "7.3.3" } }, "extra": { diff --git a/composer.lock b/composer.lock index 2d42f6d302..f73138643b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5645f5b9fc523f34169eaa48889dc99a", + "content-hash": "0aa201ed830ddbac23d62bf36b341655", "packages": [ { "name": "api-clients/appveyor", @@ -210,16 +210,16 @@ }, { "name": "api-clients/hydrator", - "version": "1.0.4", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/php-api-clients/hydrator.git", - "reference": "09a29c8a9cc1450aeb532c481741ced67d529a87" + "reference": "c882bb96c36a1c746a09b3b5db5560c560a43b46" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-api-clients/hydrator/zipball/09a29c8a9cc1450aeb532c481741ced67d529a87", - "reference": "09a29c8a9cc1450aeb532c481741ced67d529a87", + "url": "https://api.github.com/repos/php-api-clients/hydrator/zipball/c882bb96c36a1c746a09b3b5db5560c560a43b46", + "reference": "c882bb96c36a1c746a09b3b5db5560c560a43b46", "shasum": "" }, "require": { @@ -227,15 +227,15 @@ "api-clients/resource": "^3.0.1", "doctrine/annotations": "^1.2", "doctrine/cache": "^1.6", - "ocramius/generated-hydrator": "^2.0", - "php": "^7.0", - "react/promise": "^2.4", + "ocramius/generated-hydrator": "^3.0 || ^2.0", + "php": "^7.3", + "react/promise": "^2.7", "wyrihaximus/doctrine-annotation-autoloader": "^1.0", "wyrihaximus/ticking-promise": "^1.6" }, "require-dev": { - "api-clients/test-utilities": "^4.2", - "phpbench/phpbench": "^0.11" + "api-clients/test-utilities": "^5.4", + "phpbench/phpbench": "^0.16" }, "type": "library", "extra": { @@ -262,7 +262,7 @@ } ], "description": "Hydrator wrapping ocramius/generated-hydrator specifically for api clients", - "time": "2018-03-19T20:11:13+00:00" + "time": "2019-04-08T20:25:42+00:00" }, { "name": "api-clients/json", @@ -1039,16 +1039,16 @@ }, { "name": "clue/buzz-react", - "version": "v2.3.0", + "version": "v2.6.0", "source": { "type": "git", - "url": "https://github.com/clue/php-buzz-react.git", - "reference": "c37408fc5265dd853c31aea4e0b409f8c8d7af11" + "url": "https://github.com/clue/reactphp-buzz.git", + "reference": "83cc87d19fdc031cff3ddf3629d52ca95cbfbc92" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/clue/php-buzz-react/zipball/c37408fc5265dd853c31aea4e0b409f8c8d7af11", - "reference": "c37408fc5265dd853c31aea4e0b409f8c8d7af11", + "url": "https://api.github.com/repos/clue/reactphp-buzz/zipball/83cc87d19fdc031cff3ddf3629d52ca95cbfbc92", + "reference": "83cc87d19fdc031cff3ddf3629d52ca95cbfbc92", "shasum": "" }, "require": { @@ -1058,13 +1058,16 @@ "react/http-client": "^0.5.8", "react/promise": "^2.2.1 || ^1.2.1", "react/promise-stream": "^1.0 || ^0.1.1", - "react/socket": "^1.0 || ^0.8.4", + "react/promise-timer": "^1.2", + "react/socket": "^1.1", "react/stream": "^1.0 || ^0.7", "ringcentral/psr7": "^1.2" }, "require-dev": { "clue/block-react": "^1.0", - "clue/socks-react": "^0.8", + "clue/http-proxy-react": "^1.3", + "clue/reactphp-ssh-proxy": "^1.0", + "clue/socks-react": "^1.0", "phpunit/phpunit": "^7.0 || ^6.4 || ^5.7 || ^4.8.35", "react/http": "^0.8" }, @@ -1085,7 +1088,7 @@ } ], "description": "Simple, async PSR-7 HTTP client for concurrently processing any number of HTTP requests, built on top of ReactPHP", - "homepage": "https://github.com/clue/php-buzz-react", + "homepage": "https://github.com/clue/reactphp-buzz", "keywords": [ "async", "http", @@ -1093,7 +1096,7 @@ "psr-7", "reactphp" ], - "time": "2018-02-09T14:08:41+00:00" + "time": "2019-04-03T13:58:40+00:00" }, { "name": "container-interop/container-interop", @@ -1166,16 +1169,16 @@ }, { "name": "doctrine/annotations", - "version": "v1.6.0", + "version": "v1.6.1", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5" + "reference": "53120e0eb10355388d6ccbe462f1fea34ddadb24" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5", - "reference": "c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/53120e0eb10355388d6ccbe462f1fea34ddadb24", + "reference": "53120e0eb10355388d6ccbe462f1fea34ddadb24", "shasum": "" }, "require": { @@ -1230,7 +1233,7 @@ "docblock", "parser" ], - "time": "2017-12-06T07:11:42+00:00" + "time": "2019-03-25T19:12:02+00:00" }, { "name": "doctrine/cache", @@ -1406,32 +1409,33 @@ }, { "name": "guzzlehttp/psr7", - "version": "1.4.2", + "version": "1.5.2", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c" + "reference": "9f83dded91781a01c63574e387eaa769be769115" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/f5b8a8512e2b58b0071a7280e39f14f72e05d87c", - "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/9f83dded91781a01c63574e387eaa769be769115", + "reference": "9f83dded91781a01c63574e387eaa769be769115", "shasum": "" }, "require": { "php": ">=5.4.0", - "psr/http-message": "~1.0" + "psr/http-message": "~1.0", + "ralouphie/getallheaders": "^2.0.5" }, "provide": { "psr/http-message-implementation": "1.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "1.5-dev" } }, "autoload": { @@ -1461,13 +1465,14 @@ "keywords": [ "http", "message", + "psr-7", "request", "response", "stream", "uri", "url" ], - "time": "2017-03-20T17:10:46+00:00" + "time": "2018-12-04T20:46:45+00:00" }, { "name": "igorw/get-in", @@ -1983,16 +1988,16 @@ }, { "name": "ocramius/package-versions", - "version": "1.3.0", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/Ocramius/PackageVersions.git", - "reference": "4489d5002c49d55576fa0ba786f42dbb009be46f" + "reference": "a4d4b60d0e60da2487bd21a2c6ac089f85570dbb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Ocramius/PackageVersions/zipball/4489d5002c49d55576fa0ba786f42dbb009be46f", - "reference": "4489d5002c49d55576fa0ba786f42dbb009be46f", + "url": "https://api.github.com/repos/Ocramius/PackageVersions/zipball/a4d4b60d0e60da2487bd21a2c6ac089f85570dbb", + "reference": "a4d4b60d0e60da2487bd21a2c6ac089f85570dbb", "shasum": "" }, "require": { @@ -2001,6 +2006,7 @@ }, "require-dev": { "composer/composer": "^1.6.3", + "doctrine/coding-standard": "^5.0.1", "ext-zip": "*", "infection/infection": "^0.7.1", "phpunit/phpunit": "^7.0.0" @@ -2028,7 +2034,7 @@ } ], "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)", - "time": "2018-02-05T13:05:30+00:00" + "time": "2019-02-21T12:16:21+00:00" }, { "name": "php-di/invoker", @@ -2075,16 +2081,16 @@ }, { "name": "php-di/php-di", - "version": "6.0.5", + "version": "6.0.7", "source": { "type": "git", "url": "https://github.com/PHP-DI/PHP-DI.git", - "reference": "5e8b809960d5c3bfa096a90da9a78650e80b1f0e" + "reference": "78326779037852fb8c13be606110434b9911eebd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-DI/PHP-DI/zipball/5e8b809960d5c3bfa096a90da9a78650e80b1f0e", - "reference": "5e8b809960d5c3bfa096a90da9a78650e80b1f0e", + "url": "https://api.github.com/repos/PHP-DI/PHP-DI/zipball/78326779037852fb8c13be606110434b9911eebd", + "reference": "78326779037852fb8c13be606110434b9911eebd", "shasum": "" }, "require": { @@ -2134,7 +2140,7 @@ "ioc", "psr11" ], - "time": "2018-09-17T15:34:44+00:00" + "time": "2019-03-07T20:02:32+00:00" }, { "name": "php-di/phpdoc-reader", @@ -2272,6 +2278,46 @@ ], "time": "2016-08-06T14:39:51+00:00" }, + { + "name": "ralouphie/getallheaders", + "version": "2.0.5", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/5601c8a83fbba7ef674a7369456d12f1e0d0eafa", + "reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa", + "shasum": "" + }, + "require": { + "php": ">=5.3" + }, + "require-dev": { + "phpunit/phpunit": "~3.7.0", + "satooshi/php-coveralls": ">=1.0" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "time": "2016-02-11T07:05:27+00:00" + }, { "name": "ratchet/rfc6455", "version": "0.2.4", @@ -2363,21 +2409,21 @@ }, { "name": "react/dns", - "version": "v0.4.15", + "version": "v0.4.17", "source": { "type": "git", "url": "https://github.com/reactphp/dns.git", - "reference": "319e110a436d26a2fa137cfa3ef2063951715794" + "reference": "0f30c6ceb71504d359d51132a97e1703051f1589" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/dns/zipball/319e110a436d26a2fa137cfa3ef2063951715794", - "reference": "319e110a436d26a2fa137cfa3ef2063951715794", + "url": "https://api.github.com/repos/reactphp/dns/zipball/0f30c6ceb71504d359d51132a97e1703051f1589", + "reference": "0f30c6ceb71504d359d51132a97e1703051f1589", "shasum": "" }, "require": { "php": ">=5.3.0", - "react/cache": "^0.5 || ^0.4 || ^0.3", + "react/cache": "^1.0 || ^0.6 || ^0.5 || ^0.4 || ^0.3", "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", "react/promise": "^2.1 || ^1.2.1", "react/promise-timer": "^1.2", @@ -2385,7 +2431,7 @@ }, "require-dev": { "clue/block-react": "^1.2", - "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35" + "phpunit/phpunit": "^7.0 || ^6.4 || ^5.7 || ^4.8.35" }, "type": "library", "autoload": { @@ -2404,7 +2450,7 @@ "dns-resolver", "reactphp" ], - "time": "2018-07-02T12:17:56+00:00" + "time": "2019-04-01T07:31:55+00:00" }, { "name": "react/event-loop", @@ -2450,16 +2496,16 @@ }, { "name": "react/http", - "version": "v0.8.3", + "version": "v0.8.4", "source": { "type": "git", "url": "https://github.com/reactphp/http.git", - "reference": "f8bcdab2dc0ecd94f35ff9657a263028b96f0c46" + "reference": "b29ab96557ac5c53e738fcb26f73f631a3f81f1a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/http/zipball/f8bcdab2dc0ecd94f35ff9657a263028b96f0c46", - "reference": "f8bcdab2dc0ecd94f35ff9657a263028b96f0c46", + "url": "https://api.github.com/repos/reactphp/http/zipball/b29ab96557ac5c53e738fcb26f73f631a3f81f1a", + "reference": "b29ab96557ac5c53e738fcb26f73f631a3f81f1a", "shasum": "" }, "require": { @@ -2494,7 +2540,7 @@ "server", "streaming" ], - "time": "2018-04-11T15:03:27+00:00" + "time": "2019-01-16T07:26:32+00:00" }, { "name": "react/http-client", @@ -2644,16 +2690,16 @@ }, { "name": "react/promise-timer", - "version": "v1.5.0", + "version": "v1.5.1", "source": { "type": "git", "url": "https://github.com/reactphp/promise-timer.git", - "reference": "a11206938ca2394dc7bb368f5da25cd4533fa603" + "reference": "35fb910604fd86b00023fc5cda477c8074ad0abc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise-timer/zipball/a11206938ca2394dc7bb368f5da25cd4533fa603", - "reference": "a11206938ca2394dc7bb368f5da25cd4533fa603", + "url": "https://api.github.com/repos/reactphp/promise-timer/zipball/35fb910604fd86b00023fc5cda477c8074ad0abc", + "reference": "35fb910604fd86b00023fc5cda477c8074ad0abc", "shasum": "" }, "require": { @@ -2670,7 +2716,7 @@ "React\\Promise\\Timer\\": "src/" }, "files": [ - "src/functions.php" + "src/functions_include.php" ] }, "notification-url": "https://packagist.org/downloads/", @@ -2693,20 +2739,20 @@ "timeout", "timer" ], - "time": "2018-06-13T16:45:37+00:00" + "time": "2019-03-27T18:10:32+00:00" }, { "name": "react/socket", - "version": "v0.8.12", + "version": "v1.2.0", "source": { "type": "git", "url": "https://github.com/reactphp/socket.git", - "reference": "7f7e6c56ccda7418a1a264892a625f38a5bdee0c" + "reference": "23b7372bb25cea934f6124f5bdac34e30161959e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/socket/zipball/7f7e6c56ccda7418a1a264892a625f38a5bdee0c", - "reference": "7f7e6c56ccda7418a1a264892a625f38a5bdee0c", + "url": "https://api.github.com/repos/reactphp/socket/zipball/23b7372bb25cea934f6124f5bdac34e30161959e", + "reference": "23b7372bb25cea934f6124f5bdac34e30161959e", "shasum": "" }, "require": { @@ -2716,7 +2762,7 @@ "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", "react/promise": "^2.6.0 || ^1.2.1", "react/promise-timer": "^1.4.0", - "react/stream": "^1.0 || ^0.7.1" + "react/stream": "^1.1" }, "require-dev": { "clue/block-react": "^1.2", @@ -2740,7 +2786,7 @@ "reactphp", "stream" ], - "time": "2018-06-11T14:33:43+00:00" + "time": "2019-01-07T14:10:13+00:00" }, { "name": "react/stream", @@ -3072,16 +3118,16 @@ }, { "name": "symfony/polyfill-php56", - "version": "v1.10.0", + "version": "v1.11.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php56.git", - "reference": "ff208829fe1aa48ab9af356992bb7199fed551af" + "reference": "f4dddbc5c3471e1b700a147a20ae17cdb72dbe42" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/ff208829fe1aa48ab9af356992bb7199fed551af", - "reference": "ff208829fe1aa48ab9af356992bb7199fed551af", + "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/f4dddbc5c3471e1b700a147a20ae17cdb72dbe42", + "reference": "f4dddbc5c3471e1b700a147a20ae17cdb72dbe42", "shasum": "" }, "require": { @@ -3091,7 +3137,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -3124,20 +3170,20 @@ "portable", "shim" ], - "time": "2018-09-21T06:26:08+00:00" + "time": "2019-02-06T07:57:58+00:00" }, { "name": "symfony/polyfill-util", - "version": "v1.10.0", + "version": "v1.11.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-util.git", - "reference": "3b58903eae668d348a7126f999b0da0f2f93611c" + "reference": "b46c6cae28a3106735323f00a0c38eccf2328897" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/3b58903eae668d348a7126f999b0da0f2f93611c", - "reference": "3b58903eae668d348a7126f999b0da0f2f93611c", + "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/b46c6cae28a3106735323f00a0c38eccf2328897", + "reference": "b46c6cae28a3106735323f00a0c38eccf2328897", "shasum": "" }, "require": { @@ -3146,7 +3192,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -3176,7 +3222,7 @@ "polyfill", "shim" ], - "time": "2018-09-30T16:36:12+00:00" + "time": "2019-02-08T14:16:39+00:00" }, { "name": "voryx/event-loop", @@ -3905,16 +3951,16 @@ }, { "name": "composer/ca-bundle", - "version": "1.1.3", + "version": "1.1.4", "source": { "type": "git", "url": "https://github.com/composer/ca-bundle.git", - "reference": "8afa52cd417f4ec417b4bfe86b68106538a87660" + "reference": "558f321c52faeb4828c03e7dc0cfe39a09e09a2d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/ca-bundle/zipball/8afa52cd417f4ec417b4bfe86b68106538a87660", - "reference": "8afa52cd417f4ec417b4bfe86b68106538a87660", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/558f321c52faeb4828c03e7dc0cfe39a09e09a2d", + "reference": "558f321c52faeb4828c03e7dc0cfe39a09e09a2d", "shasum": "" }, "require": { @@ -3957,20 +4003,20 @@ "ssl", "tls" ], - "time": "2018-10-18T06:09:13+00:00" + "time": "2019-01-28T09:30:10+00:00" }, { "name": "composer/semver", - "version": "1.4.2", + "version": "1.5.0", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "c7cb9a2095a074d131b65a8a0cd294479d785573" + "reference": "46d9139568ccb8d9e7cdd4539cab7347568a5e2e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/c7cb9a2095a074d131b65a8a0cd294479d785573", - "reference": "c7cb9a2095a074d131b65a8a0cd294479d785573", + "url": "https://api.github.com/repos/composer/semver/zipball/46d9139568ccb8d9e7cdd4539cab7347568a5e2e", + "reference": "46d9139568ccb8d9e7cdd4539cab7347568a5e2e", "shasum": "" }, "require": { @@ -4019,20 +4065,20 @@ "validation", "versioning" ], - "time": "2016-08-30T16:08:34+00:00" + "time": "2019-03-19T17:25:45+00:00" }, { "name": "composer/xdebug-handler", - "version": "1.3.1", + "version": "1.3.2", "source": { "type": "git", "url": "https://github.com/composer/xdebug-handler.git", - "reference": "dc523135366eb68f22268d069ea7749486458562" + "reference": "d17708133b6c276d6e42ef887a877866b909d892" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/dc523135366eb68f22268d069ea7749486458562", - "reference": "dc523135366eb68f22268d069ea7749486458562", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/d17708133b6c276d6e42ef887a877866b909d892", + "reference": "d17708133b6c276d6e42ef887a877866b909d892", "shasum": "" }, "require": { @@ -4063,24 +4109,24 @@ "Xdebug", "performance" ], - "time": "2018-11-29T10:59:02+00:00" + "time": "2019-01-28T20:25:53+00:00" }, { "name": "doctrine/inflector", - "version": "v1.2.0", + "version": "v1.3.0", "source": { "type": "git", "url": "https://github.com/doctrine/inflector.git", - "reference": "e11d84c6e018beedd929cff5220969a3c6d1d462" + "reference": "5527a48b7313d15261292c149e55e26eae771b0a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/inflector/zipball/e11d84c6e018beedd929cff5220969a3c6d1d462", - "reference": "e11d84c6e018beedd929cff5220969a3c6d1d462", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/5527a48b7313d15261292c149e55e26eae771b0a", + "reference": "5527a48b7313d15261292c149e55e26eae771b0a", "shasum": "" }, "require": { - "php": "^7.0" + "php": "^7.1" }, "require-dev": { "phpunit/phpunit": "^6.2" @@ -4088,7 +4134,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.2.x-dev" + "dev-master": "1.3.x-dev" } }, "autoload": { @@ -4130,31 +4176,33 @@ "singularize", "string" ], - "time": "2017-07-22T12:18:28+00:00" + "time": "2018-01-09T20:05:19+00:00" }, { "name": "doctrine/instantiator", - "version": "1.1.0", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda" + "reference": "a2c590166b2133a4633738648b6b064edae0814a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", - "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/a2c590166b2133a4633738648b6b064edae0814a", + "reference": "a2c590166b2133a4633738648b6b064edae0814a", "shasum": "" }, "require": { "php": "^7.1" }, "require-dev": { - "athletic/athletic": "~0.1.8", + "doctrine/coding-standard": "^6.0", "ext-pdo": "*", "ext-phar": "*", - "phpunit/phpunit": "^6.2.3", - "squizlabs/php_codesniffer": "^3.0.2" + "phpbench/phpbench": "^0.13", + "phpstan/phpstan-phpunit": "^0.11", + "phpstan/phpstan-shim": "^0.11", + "phpunit/phpunit": "^7.0" }, "type": "library", "extra": { @@ -4179,25 +4227,25 @@ } ], "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": "2017-07-22T11:58:36+00:00" + "time": "2019-03-17T17:37:11+00:00" }, { "name": "friendsofphp/php-cs-fixer", - "version": "v2.14.0", + "version": "v2.14.2", "source": { "type": "git", "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "b788ea0af899cedc8114dca7db119c93b6685da2" + "reference": "ff401e58261ffc5934a58f795b3f95b355e276cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/b788ea0af899cedc8114dca7db119c93b6685da2", - "reference": "b788ea0af899cedc8114dca7db119c93b6685da2", + "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/ff401e58261ffc5934a58f795b3f95b355e276cb", + "reference": "ff401e58261ffc5934a58f795b3f95b355e276cb", "shasum": "" }, "require": { @@ -4218,9 +4266,6 @@ "symfony/process": "^3.0 || ^4.0", "symfony/stopwatch": "^3.0 || ^4.0" }, - "conflict": { - "hhvm": "*" - }, "require-dev": { "johnkary/phpunit-speedtrap": "^1.1 || ^2.0 || ^3.0", "justinrainbow/json-schema": "^5.0", @@ -4244,11 +4289,6 @@ "php-cs-fixer" ], "type": "application", - "extra": { - "branch-alias": { - "dev-master": "2.14-dev" - } - }, "autoload": { "psr-4": { "PhpCsFixer\\": "src/" @@ -4280,7 +4320,7 @@ } ], "description": "A tool to automatically fix PHP code style", - "time": "2019-01-04T18:29:47+00:00" + "time": "2019-02-17T17:44:13+00:00" }, { "name": "infection/infection", @@ -4753,20 +4793,20 @@ }, { "name": "myclabs/deep-copy", - "version": "1.8.1", + "version": "1.9.0", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8" + "reference": "78af75148f9fdd34ea727c8b529a9b4a8f7b740c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", - "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/78af75148f9fdd34ea727c8b529a9b4a8f7b740c", + "reference": "78af75148f9fdd34ea727c8b529a9b4a8f7b740c", "shasum": "" }, "require": { - "php": "^7.1" + "php": "^7.2" }, "replace": { "myclabs/deep-copy": "self.version" @@ -4774,6 +4814,8 @@ "require-dev": { "doctrine/collections": "^1.0", "doctrine/common": "^2.6", + "phpstan/phpstan": "^0.9.2", + "phpstan/phpstan-phpunit": "^0.9.4", "phpunit/phpunit": "^7.1" }, "type": "library", @@ -4797,7 +4839,7 @@ "object", "object graph" ], - "time": "2018-06-11T23:09:50+00:00" + "time": "2018-10-30T00:14:44+00:00" }, { "name": "padraic/humbug_get_contents", @@ -5483,16 +5525,16 @@ }, { "name": "phpunit/php-timer", - "version": "2.0.0", + "version": "2.1.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "8b8454ea6958c3dee38453d3bd571e023108c91f" + "reference": "8b389aebe1b8b0578430bda0c7c95a829608e059" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/8b8454ea6958c3dee38453d3bd571e023108c91f", - "reference": "8b8454ea6958c3dee38453d3bd571e023108c91f", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/8b389aebe1b8b0578430bda0c7c95a829608e059", + "reference": "8b389aebe1b8b0578430bda0c7c95a829608e059", "shasum": "" }, "require": { @@ -5504,7 +5546,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "2.1-dev" } }, "autoload": { @@ -5528,7 +5570,7 @@ "keywords": [ "timer" ], - "time": "2018-02-01T13:07:23+00:00" + "time": "2019-02-20T10:12:59+00:00" }, { "name": "phpunit/php-token-stream", @@ -5581,16 +5623,16 @@ }, { "name": "phpunit/phpunit", - "version": "7.5.2", + "version": "7.5.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "7c89093bd00f7d5ddf0ab81dee04f801416b4944" + "reference": "c29c0525cf4572c11efe1db49a8b8aee9dfac58a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/7c89093bd00f7d5ddf0ab81dee04f801416b4944", - "reference": "7c89093bd00f7d5ddf0ab81dee04f801416b4944", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c29c0525cf4572c11efe1db49a8b8aee9dfac58a", + "reference": "c29c0525cf4572c11efe1db49a8b8aee9dfac58a", "shasum": "" }, "require": { @@ -5608,7 +5650,7 @@ "phpunit/php-code-coverage": "^6.0.7", "phpunit/php-file-iterator": "^2.0.1", "phpunit/php-text-template": "^1.2.1", - "phpunit/php-timer": "^2.0", + "phpunit/php-timer": "^2.1", "sebastian/comparator": "^3.0", "sebastian/diff": "^3.0", "sebastian/environment": "^4.0", @@ -5661,7 +5703,7 @@ "testing", "xunit" ], - "time": "2019-01-15T08:19:08+00:00" + "time": "2019-03-26T13:23:54+00:00" }, { "name": "pimple/pimple", @@ -5871,23 +5913,23 @@ }, { "name": "sebastian/diff", - "version": "3.0.1", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "366541b989927187c4ca70490a35615d3fef2dce" + "reference": "720fcc7e9b5cf384ea68d9d930d480907a0c1a29" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/366541b989927187c4ca70490a35615d3fef2dce", - "reference": "366541b989927187c4ca70490a35615d3fef2dce", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/720fcc7e9b5cf384ea68d9d930d480907a0c1a29", + "reference": "720fcc7e9b5cf384ea68d9d930d480907a0c1a29", "shasum": "" }, "require": { "php": "^7.1" }, "require-dev": { - "phpunit/phpunit": "^7.0", + "phpunit/phpunit": "^7.5 || ^8.0", "symfony/process": "^2 || ^3.3 || ^4" }, "type": "library", @@ -5923,32 +5965,35 @@ "unidiff", "unified diff" ], - "time": "2018-06-10T07:54:39+00:00" + "time": "2019-02-04T06:01:07+00:00" }, { "name": "sebastian/environment", - "version": "4.0.1", + "version": "4.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "febd209a219cea7b56ad799b30ebbea34b71eb8f" + "reference": "6fda8ce1974b62b14935adc02a9ed38252eca656" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/febd209a219cea7b56ad799b30ebbea34b71eb8f", - "reference": "febd209a219cea7b56ad799b30ebbea34b71eb8f", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/6fda8ce1974b62b14935adc02a9ed38252eca656", + "reference": "6fda8ce1974b62b14935adc02a9ed38252eca656", "shasum": "" }, "require": { "php": "^7.1" }, "require-dev": { - "phpunit/phpunit": "^7.4" + "phpunit/phpunit": "^7.5" + }, + "suggest": { + "ext-posix": "*" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-master": "4.1-dev" } }, "autoload": { @@ -5973,7 +6018,7 @@ "environment", "hhvm" ], - "time": "2018-11-25T09:31:21+00:00" + "time": "2019-02-01T05:27:49+00:00" }, { "name": "sebastian/exporter", @@ -6325,16 +6370,16 @@ }, { "name": "symfony/console", - "version": "v4.2.2", + "version": "v4.2.5", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "b0a03c1bb0fcbe288629956cf2f1dd3f1dc97522" + "reference": "24206aff3efe6962593297e57ef697ebb220e384" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/b0a03c1bb0fcbe288629956cf2f1dd3f1dc97522", - "reference": "b0a03c1bb0fcbe288629956cf2f1dd3f1dc97522", + "url": "https://api.github.com/repos/symfony/console/zipball/24206aff3efe6962593297e57ef697ebb220e384", + "reference": "24206aff3efe6962593297e57ef697ebb220e384", "shasum": "" }, "require": { @@ -6346,6 +6391,9 @@ "symfony/dependency-injection": "<3.4", "symfony/process": "<3.3" }, + "provide": { + "psr/log-implementation": "1.0" + }, "require-dev": { "psr/log": "~1.0", "symfony/config": "~3.4|~4.0", @@ -6355,7 +6403,7 @@ "symfony/process": "~3.4|~4.0" }, "suggest": { - "psr/log-implementation": "For using the console logger", + "psr/log": "For using the console logger", "symfony/event-dispatcher": "", "symfony/lock": "", "symfony/process": "" @@ -6390,7 +6438,7 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2019-01-04T15:13:53+00:00" + "time": "2019-04-01T07:32:59+00:00" }, { "name": "symfony/contracts", @@ -6462,16 +6510,16 @@ }, { "name": "symfony/event-dispatcher", - "version": "v4.2.2", + "version": "v4.2.5", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "887de6d34c86cf0cb6cbf910afb170cdb743cb5e" + "reference": "ca5af306fbc37f3cf597e91bc9cfa0c7d3f33544" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/887de6d34c86cf0cb6cbf910afb170cdb743cb5e", - "reference": "887de6d34c86cf0cb6cbf910afb170cdb743cb5e", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/ca5af306fbc37f3cf597e91bc9cfa0c7d3f33544", + "reference": "ca5af306fbc37f3cf597e91bc9cfa0c7d3f33544", "shasum": "" }, "require": { @@ -6522,20 +6570,20 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2019-01-05T16:37:49+00:00" + "time": "2019-03-30T15:58:42+00:00" }, { "name": "symfony/filesystem", - "version": "v4.2.2", + "version": "v4.2.5", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "c2ffd9a93f2d6c5be2f68a0aa7953cc229f871f8" + "reference": "e16b9e471703b2c60b95f14d31c1239f68f11601" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/c2ffd9a93f2d6c5be2f68a0aa7953cc229f871f8", - "reference": "c2ffd9a93f2d6c5be2f68a0aa7953cc229f871f8", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/e16b9e471703b2c60b95f14d31c1239f68f11601", + "reference": "e16b9e471703b2c60b95f14d31c1239f68f11601", "shasum": "" }, "require": { @@ -6572,20 +6620,20 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2019-01-03T09:07:35+00:00" + "time": "2019-02-07T11:40:08+00:00" }, { "name": "symfony/finder", - "version": "v4.2.2", + "version": "v4.2.5", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "9094d69e8c6ee3fe186a0ec5a4f1401e506071ce" + "reference": "267b7002c1b70ea80db0833c3afe05f0fbde580a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/9094d69e8c6ee3fe186a0ec5a4f1401e506071ce", - "reference": "9094d69e8c6ee3fe186a0ec5a4f1401e506071ce", + "url": "https://api.github.com/repos/symfony/finder/zipball/267b7002c1b70ea80db0833c3afe05f0fbde580a", + "reference": "267b7002c1b70ea80db0833c3afe05f0fbde580a", "shasum": "" }, "require": { @@ -6621,20 +6669,20 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2019-01-03T09:07:35+00:00" + "time": "2019-02-23T15:42:05+00:00" }, { "name": "symfony/options-resolver", - "version": "v4.2.2", + "version": "v4.2.5", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "fbcb106aeee72f3450298bf73324d2cc00d083d1" + "reference": "3896e5a7d06fd15fa4947694c8dcdd371ff147d1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/fbcb106aeee72f3450298bf73324d2cc00d083d1", - "reference": "fbcb106aeee72f3450298bf73324d2cc00d083d1", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/3896e5a7d06fd15fa4947694c8dcdd371ff147d1", + "reference": "3896e5a7d06fd15fa4947694c8dcdd371ff147d1", "shasum": "" }, "require": { @@ -6675,20 +6723,20 @@ "configuration", "options" ], - "time": "2019-01-03T09:07:35+00:00" + "time": "2019-02-23T15:17:42+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.10.0", + "version": "v1.11.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "e3d826245268269cd66f8326bd8bc066687b4a19" + "reference": "82ebae02209c21113908c229e9883c419720738a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19", - "reference": "e3d826245268269cd66f8326bd8bc066687b4a19", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/82ebae02209c21113908c229e9883c419720738a", + "reference": "82ebae02209c21113908c229e9883c419720738a", "shasum": "" }, "require": { @@ -6700,7 +6748,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -6733,20 +6781,20 @@ "polyfill", "portable" ], - "time": "2018-08-06T14:22:27+00:00" + "time": "2019-02-06T07:57:58+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.10.0", + "version": "v1.11.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "c79c051f5b3a46be09205c73b80b346e4153e494" + "reference": "fe5e94c604826c35a32fa832f35bd036b6799609" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494", - "reference": "c79c051f5b3a46be09205c73b80b346e4153e494", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fe5e94c604826c35a32fa832f35bd036b6799609", + "reference": "fe5e94c604826c35a32fa832f35bd036b6799609", "shasum": "" }, "require": { @@ -6758,7 +6806,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -6792,20 +6840,20 @@ "portable", "shim" ], - "time": "2018-09-21T13:07:52+00:00" + "time": "2019-02-06T07:57:58+00:00" }, { "name": "symfony/polyfill-php70", - "version": "v1.10.0", + "version": "v1.11.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php70.git", - "reference": "6b88000cdd431cd2e940caa2cb569201f3f84224" + "reference": "bc4858fb611bda58719124ca079baff854149c89" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/6b88000cdd431cd2e940caa2cb569201f3f84224", - "reference": "6b88000cdd431cd2e940caa2cb569201f3f84224", + "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/bc4858fb611bda58719124ca079baff854149c89", + "reference": "bc4858fb611bda58719124ca079baff854149c89", "shasum": "" }, "require": { @@ -6815,7 +6863,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -6851,20 +6899,20 @@ "portable", "shim" ], - "time": "2018-09-21T06:26:08+00:00" + "time": "2019-02-06T07:57:58+00:00" }, { "name": "symfony/polyfill-php72", - "version": "v1.10.0", + "version": "v1.11.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php72.git", - "reference": "9050816e2ca34a8e916c3a0ae8b9c2fccf68b631" + "reference": "ab50dcf166d5f577978419edd37aa2bb8eabce0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/9050816e2ca34a8e916c3a0ae8b9c2fccf68b631", - "reference": "9050816e2ca34a8e916c3a0ae8b9c2fccf68b631", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/ab50dcf166d5f577978419edd37aa2bb8eabce0c", + "reference": "ab50dcf166d5f577978419edd37aa2bb8eabce0c", "shasum": "" }, "require": { @@ -6873,7 +6921,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -6906,20 +6954,20 @@ "portable", "shim" ], - "time": "2018-09-21T13:07:52+00:00" + "time": "2019-02-06T07:57:58+00:00" }, { "name": "symfony/process", - "version": "v4.2.2", + "version": "v4.2.5", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "ea043ab5d8ed13b467a9087d81cb876aee7f689a" + "reference": "1e6cbb41dadcaf29e0db034d6ad0d039a9df06e6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/ea043ab5d8ed13b467a9087d81cb876aee7f689a", - "reference": "ea043ab5d8ed13b467a9087d81cb876aee7f689a", + "url": "https://api.github.com/repos/symfony/process/zipball/1e6cbb41dadcaf29e0db034d6ad0d039a9df06e6", + "reference": "1e6cbb41dadcaf29e0db034d6ad0d039a9df06e6", "shasum": "" }, "require": { @@ -6955,20 +7003,20 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2019-01-03T14:48:52+00:00" + "time": "2019-03-10T20:07:02+00:00" }, { "name": "symfony/stopwatch", - "version": "v4.2.2", + "version": "v4.2.5", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "af62b35760fc92c8dbdce659b4eebdfe0e6a0472" + "reference": "b1a5f646d56a3290230dbc8edf2a0d62cda23f67" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/af62b35760fc92c8dbdce659b4eebdfe0e6a0472", - "reference": "af62b35760fc92c8dbdce659b4eebdfe0e6a0472", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/b1a5f646d56a3290230dbc8edf2a0d62cda23f67", + "reference": "b1a5f646d56a3290230dbc8edf2a0d62cda23f67", "shasum": "" }, "require": { @@ -7005,20 +7053,20 @@ ], "description": "Symfony Stopwatch Component", "homepage": "https://symfony.com", - "time": "2019-01-03T09:07:35+00:00" + "time": "2019-01-16T20:31:39+00:00" }, { "name": "symfony/yaml", - "version": "v3.4.21", + "version": "v3.4.24", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "554a59a1ccbaac238a89b19c8e551a556fd0e2ea" + "reference": "212a27b731e5bfb735679d1ffaac82bd6a1dc996" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/554a59a1ccbaac238a89b19c8e551a556fd0e2ea", - "reference": "554a59a1ccbaac238a89b19c8e551a556fd0e2ea", + "url": "https://api.github.com/repos/symfony/yaml/zipball/212a27b731e5bfb735679d1ffaac82bd6a1dc996", + "reference": "212a27b731e5bfb735679d1ffaac82bd6a1dc996", "shasum": "" }, "require": { @@ -7064,20 +7112,20 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2019-01-01T13:45:19+00:00" + "time": "2019-03-25T07:48:46+00:00" }, { "name": "theseer/tokenizer", - "version": "1.1.0", + "version": "1.1.2", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b" + "reference": "1c42705be2b6c1de5904f8afacef5895cab44bf8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/cb2f008f3f05af2893a87208fe6a6c4985483f8b", - "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/1c42705be2b6c1de5904f8afacef5895cab44bf8", + "reference": "1c42705be2b6c1de5904f8afacef5895cab44bf8", "shasum": "" }, "require": { @@ -7104,7 +7152,7 @@ } ], "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", - "time": "2017-04-07T12:08:54+00:00" + "time": "2019-04-04T09:56:43+00:00" }, { "name": "webmozart/assert", @@ -7167,10 +7215,10 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^7.2" + "php": "^7.3" }, "platform-dev": [], "platform-overrides": { - "php": "7.2" + "php": "7.3.3" } } diff --git a/examples/advanced-add-github-sponsors-file.php b/examples/advanced-add-github-sponsors-file.php new file mode 100644 index 0000000000..2c0df1c939 --- /dev/null +++ b/examples/advanced-add-github-sponsors-file.php @@ -0,0 +1,74 @@ +user($argv[1] ?? 'WyriHaximus')->then(function (User $user) use ($argv) { + return $user->repositories(); +}))->filter(function (Repository $repository) { + return $repository->private() === false; +})->filter(function (Repository $repository) { + return $repository->fork() === false; +})->filter(function (Repository $repository) { + return $repository->name() !== 'reactphp-simple-orm'; +})->filter(function (Repository $repository) { + return \strpos($repository->name(), 'reactphp') !== false; +})->subscribe(function (Repository $repository) use ($argv, $loop) { + $stream = new ThroughStream(); + + $loop->addTimer(1, function () use ($stream, $argv) { + $stream->end('github: ' . $argv[1]); + }); + + return $repository->blob($stream)->then(function (TreeInterface $tree) use ($repository) { + return Promise::fromObservable($repository->commits()->take(1))->then(function (Repository\Commit $commit) use ($tree, $repository) { + return $repository->tree( + $commit->commit()->tree()->sha(), + new NamedBlob( + '.github/FUNDING.yml', + '100644', + 'blob', + $tree->sha(), + null + ) + )->then(function (\ApiClients\Client\Github\Resource\Git\TreeInterface $tree) use ($repository, $commit) { + return $repository->commit( + 'Added Github Sponsors', + $tree, + $commit->sha() + ); + }); + }); + })->then(function (Commit $commit) use ($repository) { + return Promise::fromObservable($repository->refs()->filter(function (RefInterface $ref) { + return $ref->ref() === 'refs/heads/master'; + }))->then(function (?Ref $ref) use ($repository, $commit) { + if ($ref === null) { + return resolve(true); + } + + return $repository->ref($ref, $commit); + }); + })->done(function () use ($repository) { + echo $repository->htmlUrl(), \PHP_EOL; + }, 'display_throwable'); +}, 'display_throwable'); + +$loop->run(); + +displayState($client->getRateLimitState()); diff --git a/examples/user-repositories-commit-combined-status-async.php b/examples/user-repositories-commit-combined-status-async.php index b4c10bd26f..785b184265 100644 --- a/examples/user-repositories-commit-combined-status-async.php +++ b/examples/user-repositories-commit-combined-status-async.php @@ -18,11 +18,16 @@ return $user->repository($argv[2] ?? 'github'); })->then(function (Repository $repository) { resource_pretty_print($repository, 1, true); - $repository->commits()->take(1)->subscribe(function (Repository\Commit $commit) { - $commit->status()->done(function (CombinedStatusInterface $combinedStatus) { - resource_pretty_print($combinedStatus, 3, true); - }, 'display_throwable'); - }, 'display_throwable'); + + return $repository->commits()->take(1)->toPromise(); +})->then(function (Repository\Commit $commit) { + return $commit->status(); +})->then(function (CombinedStatusInterface $combinedStatus) { + resource_pretty_print($combinedStatus, 3, true); + + return $combinedStatus->refresh(); +})->then(function (CombinedStatusInterface $combinedStatus) { + resource_pretty_print($combinedStatus, 3, true); })->done(null, 'display_throwable'); $loop->run(); diff --git a/src/Resource/Async/Repository/Commit/CombinedStatus.php b/src/Resource/Async/Repository/Commit/CombinedStatus.php index 52c8a783f2..3e0cb4ac83 100644 --- a/src/Resource/Async/Repository/Commit/CombinedStatus.php +++ b/src/Resource/Async/Repository/Commit/CombinedStatus.php @@ -2,12 +2,16 @@ namespace ApiClients\Client\Github\Resource\Async\Repository\Commit; +use ApiClients\Client\Github\CommandBus\Command\RefreshCommand; use ApiClients\Client\Github\Resource\Repository\Commit\CombinedStatus as BaseCombinedStatus; +use React\Promise\PromiseInterface; class CombinedStatus extends BaseCombinedStatus { - public function refresh(): CombinedStatus + public function refresh(): PromiseInterface { - throw new \Exception('TODO: create refresh method!'); + return $this->handleCommand( + new RefreshCommand($this) + ); } } diff --git a/src/Resource/Async/Repository/Commit/Status.php b/src/Resource/Async/Repository/Commit/Status.php index 2250199503..87ea3327bc 100644 --- a/src/Resource/Async/Repository/Commit/Status.php +++ b/src/Resource/Async/Repository/Commit/Status.php @@ -2,12 +2,16 @@ namespace ApiClients\Client\Github\Resource\Async\Repository\Commit; +use ApiClients\Client\Github\CommandBus\Command\RefreshCommand; use ApiClients\Client\Github\Resource\Repository\Commit\Status as BaseStatus; +use React\Promise\PromiseInterface; class Status extends BaseStatus { - public function refresh(): Status + public function refresh(): PromiseInterface { - throw new \Exception('TODO: create refresh method!'); + return $this->handleCommand( + new RefreshCommand($this) + ); } } diff --git a/src/Resource/Repository/Commit/CombinedStatus.php b/src/Resource/Repository/Commit/CombinedStatus.php index 0dc48207c5..b5f1165088 100644 --- a/src/Resource/Repository/Commit/CombinedStatus.php +++ b/src/Resource/Repository/Commit/CombinedStatus.php @@ -28,6 +28,11 @@ abstract class CombinedStatus extends AbstractResource implements CombinedStatus */ protected $sha; + /** + * @var string + */ + protected $url; + /** * @var int */ @@ -59,6 +64,14 @@ public function sha(): string return $this->sha; } + /** + * @return string + */ + public function url(): string + { + return $this->url; + } + /** * @return int */ diff --git a/src/Resource/Repository/Commit/CombinedStatusInterface.php b/src/Resource/Repository/Commit/CombinedStatusInterface.php index f7991bd84f..0766091126 100644 --- a/src/Resource/Repository/Commit/CombinedStatusInterface.php +++ b/src/Resource/Repository/Commit/CombinedStatusInterface.php @@ -18,6 +18,11 @@ public function state(): string; */ public function sha(): string; + /** + * @return string + */ + public function url(): string; + /** * @return int */ diff --git a/src/Resource/Repository/Commit/EmptyCombinedStatus.php b/src/Resource/Repository/Commit/EmptyCombinedStatus.php index 30103bbe63..17efb0a09d 100644 --- a/src/Resource/Repository/Commit/EmptyCombinedStatus.php +++ b/src/Resource/Repository/Commit/EmptyCombinedStatus.php @@ -22,6 +22,14 @@ public function sha(): string return null; } + /** + * @return string + */ + public function url(): string + { + return null; + } + /** * @return int */ diff --git a/tests/CommandBus/Handler/EmojisHandlerTest.php b/tests/CommandBus/Handler/EmojisHandlerTest.php index a17fe5e6b1..7c99ca5b03 100644 --- a/tests/CommandBus/Handler/EmojisHandlerTest.php +++ b/tests/CommandBus/Handler/EmojisHandlerTest.php @@ -29,14 +29,14 @@ public function testCommand() $hydrator = $this->prophesize(Hydrator::class); $hydrator->hydrate( EmojiInterface::HYDRATE_CLASS, - [ + [ 'name' => 'foo', 'image' => 'bar', ] )->shouldBeCalled()->willReturn($this->prophesize(EmojiInterface::class)->reveal()); $hydrator->hydrate( EmojiInterface::HYDRATE_CLASS, - [ + [ 'name' => 'bar', 'image' => 'foo', ]