diff --git a/.gitignore b/.gitignore index 5049f84..ce45a9c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /vendor /.idea +.phpunit.result.cache diff --git a/composer.json b/composer.json index f837d68..0148c37 100644 --- a/composer.json +++ b/composer.json @@ -16,15 +16,15 @@ "ext-json": "*", "amphp/amp": "^2.1.1", "amphp/artax": "^3.0.14", - "harmonyio/cache": "^1.0.0-rc1" + "harmonyio/cache": "dev-master" }, "require-dev": { - "harmonyio/php-codesniffer-ruleset": "^1.0.0-rc1", - "harmonyio/phpunit-extension": "^1.0.0-rc1", - "maglnet/composer-require-checker": "^1.1.0", - "phpunit/phpunit": "^7.5.1", - "slevomat/coding-standard": "^4.8.6", - "squizlabs/php_codesniffer": "^3.4.0" + "harmonyio/php-codesniffer-ruleset": "dev-master", + "harmonyio/phpunit-extension": "dev-master", + "maglnet/composer-require-checker": "^2.0.0", + "phpunit/phpunit": "^8.1.3", + "slevomat/coding-standard": "^5.0.4", + "squizlabs/php_codesniffer": "^3.4.2" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index d84dfe6..ee1578c 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": "0cc769953988b658426f276aaa92253b", + "content-hash": "da592181023e9c23feeb6974e8c2134e", "packages": [ { "name": "amphp/amp", @@ -249,33 +249,31 @@ }, { "name": "amphp/dns", - "version": "v0.9.13", + "version": "v0.9.14", "source": { "type": "git", "url": "https://github.com/amphp/dns.git", - "reference": "4647e5f58263ffdeff7da5c269f517cb48cff84f" + "reference": "1ccd6337f72107ba422ae72a5812687739d214c8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/dns/zipball/4647e5f58263ffdeff7da5c269f517cb48cff84f", - "reference": "4647e5f58263ffdeff7da5c269f517cb48cff84f", + "url": "https://api.github.com/repos/amphp/dns/zipball/1ccd6337f72107ba422ae72a5812687739d214c8", + "reference": "1ccd6337f72107ba422ae72a5812687739d214c8", "shasum": "" }, "require": { "amphp/amp": "^2", "amphp/byte-stream": "^1.1", "amphp/cache": "^1.2", - "amphp/file": "^0.2 || ^0.3", "amphp/parser": "^1", - "amphp/uri": "^0.1", "amphp/windows-registry": "^0.3", "daverandom/libdns": "^2.0.1", "ext-filter": "*", "php": ">=7.0" }, "require-dev": { + "amphp/php-cs-fixer-config": "dev-master", "amphp/phpunit-util": "^1", - "friendsofphp/php-cs-fixer": "^2.3", "phpunit/phpunit": "^6" }, "type": "library", @@ -323,20 +321,20 @@ "dns", "resolve" ], - "time": "2018-05-01T18:08:54+00:00" + "time": "2019-01-25T04:12:31+00:00" }, { "name": "amphp/file", - "version": "v0.3.3", + "version": "v0.3.5", "source": { "type": "git", "url": "https://github.com/amphp/file.git", - "reference": "25d8ef6e67b95d5249e0af7a80adce77657d16bb" + "reference": "ba57064e7c0cbcae89429afb2ba93b8f31bd7fc8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/file/zipball/25d8ef6e67b95d5249e0af7a80adce77657d16bb", - "reference": "25d8ef6e67b95d5249e0af7a80adce77657d16bb", + "url": "https://api.github.com/repos/amphp/file/zipball/ba57064e7c0cbcae89429afb2ba93b8f31bd7fc8", + "reference": "ba57064e7c0cbcae89429afb2ba93b8f31bd7fc8", "shasum": "" }, "require": { @@ -389,20 +387,20 @@ "non-blocking", "static" ], - "time": "2018-10-28T14:38:35+00:00" + "time": "2019-03-01T16:38:04+00:00" }, { "name": "amphp/parallel", - "version": "v1.0.1", + "version": "v1.1.1", "source": { "type": "git", "url": "https://github.com/amphp/parallel.git", - "reference": "4c3c93e46a0108f04990352b0d084ded2ec2cc17" + "reference": "687776dc6933af4c6009ac58f915faf45e8463ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/parallel/zipball/4c3c93e46a0108f04990352b0d084ded2ec2cc17", - "reference": "4c3c93e46a0108f04990352b0d084ded2ec2cc17", + "url": "https://api.github.com/repos/amphp/parallel/zipball/687776dc6933af4c6009ac58f915faf45e8463ce", + "reference": "687776dc6933af4c6009ac58f915faf45e8463ce", "shasum": "" }, "require": { @@ -452,7 +450,7 @@ "multi-processing", "multi-threading" ], - "time": "2018-10-27T16:19:01+00:00" + "time": "2019-01-09T21:31:46+00:00" }, { "name": "amphp/parser", @@ -507,16 +505,16 @@ }, { "name": "amphp/process", - "version": "v1.0.2", + "version": "v1.1.0", "source": { "type": "git", "url": "https://github.com/amphp/process.git", - "reference": "90f3f31cbd0eee7fa5ae03ce588b1fc8f122997c" + "reference": "355b1e561b01c16ab3d78fada1ad47ccc96df70e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/process/zipball/90f3f31cbd0eee7fa5ae03ce588b1fc8f122997c", - "reference": "90f3f31cbd0eee7fa5ae03ce588b1fc8f122997c", + "url": "https://api.github.com/repos/amphp/process/zipball/355b1e561b01c16ab3d78fada1ad47ccc96df70e", + "reference": "355b1e561b01c16ab3d78fada1ad47ccc96df70e", "shasum": "" }, "require": { @@ -535,7 +533,7 @@ "Amp\\Process\\": "lib" }, "files": [ - "lib/constants.php" + "lib/functions.php" ] }, "notification-url": "https://packagist.org/downloads/", @@ -558,7 +556,7 @@ ], "description": "Asynchronous process manager.", "homepage": "https://github.com/amphp/process", - "time": "2018-11-09T00:02:00+00:00" + "time": "2019-02-26T16:33:03+00:00" }, { "name": "amphp/redis", @@ -862,32 +860,32 @@ }, { "name": "harmonyio/cache", - "version": "v1.0.0-rc1", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/HarmonyIO/Cache.git", - "reference": "61ded07e411d7911cc826f3ee756fcb9509b2455" + "reference": "4b5a7f6afa809f0f56ee81dc7b6f38e99b611ca0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/HarmonyIO/Cache/zipball/61ded07e411d7911cc826f3ee756fcb9509b2455", - "reference": "61ded07e411d7911cc826f3ee756fcb9509b2455", + "url": "https://api.github.com/repos/HarmonyIO/Cache/zipball/4b5a7f6afa809f0f56ee81dc7b6f38e99b611ca0", + "reference": "4b5a7f6afa809f0f56ee81dc7b6f38e99b611ca0", "shasum": "" }, "require": { "amphp/amp": "^2.1.1", - "amphp/cache": "^1.2", + "amphp/cache": "^1.2.0", "amphp/redis": "^0.3.3", - "amphp/uri": "^0.1.3", + "amphp/uri": "v0.1.3", "php": "^7.3" }, "require-dev": { - "harmonyio/php-codesniffer-ruleset": "^1.0.0-rc1", - "harmonyio/phpunit-extension": "^1.0.0-rc1", - "maglnet/composer-require-checker": "^1.1.0", - "phpunit/phpunit": "^7.5.1", - "slevomat/coding-standard": "^4.8.6", - "squizlabs/php_codesniffer": "^3.4.0" + "harmonyio/php-codesniffer-ruleset": "dev-master", + "harmonyio/phpunit-extension": "dev-master", + "maglnet/composer-require-checker": "^2.0.0", + "phpunit/phpunit": "^8.1.3", + "slevomat/coding-standard": "^5.0.4", + "squizlabs/php_codesniffer": "^3.4.2" }, "type": "library", "autoload": { @@ -906,7 +904,7 @@ } ], "description": "Asynchronous caching library", - "time": "2018-12-28T00:41:06+00:00" + "time": "2019-04-29T09:32:24+00:00" }, { "name": "kelunik/certificate", @@ -961,27 +959,29 @@ "packages-dev": [ { "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": { @@ -1006,30 +1006,30 @@ } ], "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": "harmonyio/php-codesniffer-ruleset", - "version": "v1.0.0-rc1", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/HarmonyIO/PHP-CodeSniffer-Ruleset.git", - "reference": "ae732ba33cd99d58440d206ca90bbd080809c3a8" + "reference": "fc25a1e86dbda2284fc3e759dedd6febda89d9cd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/HarmonyIO/PHP-CodeSniffer-Ruleset/zipball/ae732ba33cd99d58440d206ca90bbd080809c3a8", - "reference": "ae732ba33cd99d58440d206ca90bbd080809c3a8", + "url": "https://api.github.com/repos/HarmonyIO/PHP-CodeSniffer-Ruleset/zipball/fc25a1e86dbda2284fc3e759dedd6febda89d9cd", + "reference": "fc25a1e86dbda2284fc3e759dedd6febda89d9cd", "shasum": "" }, "require": { - "slevomat/coding-standard": "^4.8.6", - "squizlabs/php_codesniffer": "^3.4.0" + "slevomat/coding-standard": "^5.0.4", + "squizlabs/php_codesniffer": "^3.4.2" }, "type": "library", "notification-url": "https://packagist.org/downloads/", @@ -1043,32 +1043,32 @@ } ], "description": "HarmonyIO coding standards", - "time": "2018-12-24T16:03:36+00:00" + "time": "2019-04-29T06:03:58+00:00" }, { "name": "harmonyio/phpunit-extension", - "version": "v1.0.0-rc1", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/HarmonyIO/PHPUnit-Extension.git", - "reference": "9654c0b2ddd9fb86f00fce77d35d42eabe84d266" + "reference": "549efc217e58b0368410c40964392cca70421a0a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/HarmonyIO/PHPUnit-Extension/zipball/9654c0b2ddd9fb86f00fce77d35d42eabe84d266", - "reference": "9654c0b2ddd9fb86f00fce77d35d42eabe84d266", + "url": "https://api.github.com/repos/HarmonyIO/PHPUnit-Extension/zipball/549efc217e58b0368410c40964392cca70421a0a", + "reference": "549efc217e58b0368410c40964392cca70421a0a", "shasum": "" }, "require": { "amphp/amp": "^2.1.1", "php": "^7.3", - "phpunit/phpunit": "^7.5.1" + "phpunit/phpunit": "^8.1.3" }, "require-dev": { - "harmonyio/php-codesniffer-ruleset": "1.0.0-rc1", - "maglnet/composer-require-checker": "^1.1.0", - "slevomat/coding-standard": "^4.8.6", - "squizlabs/php_codesniffer": "^3.4.0" + "harmonyio/php-codesniffer-ruleset": "dev-master", + "maglnet/composer-require-checker": "^2.0.0", + "slevomat/coding-standard": "^5.0.4", + "squizlabs/php_codesniffer": "^3.4.2" }, "type": "library", "autoload": { @@ -1087,33 +1087,34 @@ } ], "description": "Asynchronous helpers for PHPUnit", - "time": "2018-12-24T18:07:04+00:00" + "time": "2019-04-29T06:27:08+00:00" }, { "name": "maglnet/composer-require-checker", - "version": "1.1.0", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/maglnet/ComposerRequireChecker.git", - "reference": "20a7a3b27938b64eb5680c2744a2acf9f23f878d" + "reference": "2d0ed3c76913a24bee08e324446aa47dd1ab37fb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/maglnet/ComposerRequireChecker/zipball/20a7a3b27938b64eb5680c2744a2acf9f23f878d", - "reference": "20a7a3b27938b64eb5680c2744a2acf9f23f878d", + "url": "https://api.github.com/repos/maglnet/ComposerRequireChecker/zipball/2d0ed3c76913a24bee08e324446aa47dd1ab37fb", + "reference": "2d0ed3c76913a24bee08e324446aa47dd1ab37fb", "shasum": "" }, "require": { "ext-json": "*", "ext-phar": "*", - "nikic/php-parser": "~4.0", - "php": "~7.1", - "symfony/console": "~3.0|~4.0", - "webmozart/glob": "^4.1@dev" + "nikic/php-parser": "^4.0", + "php": "^7.1", + "symfony/console": "^3.4.17 | ^4.1.6", + "webmozart/glob": "^4.1" }, "require-dev": { "mikey179/vfsstream": "^1.6", - "phpunit/phpunit": "~6.0" + "phpstan/phpstan": "^0.10.3", + "phpunit/phpunit": "^6.0" }, "bin": [ "bin/composer-require-checker" @@ -1121,7 +1122,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "1.1-dev" } }, "autoload": { @@ -1146,7 +1147,7 @@ } ], "description": "CLI tool to analyze composer dependencies and verify that no unknown symbols are used in the sources of a package", - "homepage": "https://github.com/Ocramius/ComposerRequireChecker", + "homepage": "https://github.com/maglnet/ComposerRequireChecker", "keywords": [ "analysis", "cli", @@ -1156,20 +1157,20 @@ "require", "requirements" ], - "time": "2018-09-03T09:27:25+00:00" + "time": "2019-03-19T20:16:54+00:00" }, { "name": "myclabs/deep-copy", - "version": "1.8.1", + "version": "1.9.1", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8" + "reference": "e6828efaba2c9b79f4499dae1d66ef8bfa7b2b72" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", - "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/e6828efaba2c9b79f4499dae1d66ef8bfa7b2b72", + "reference": "e6828efaba2c9b79f4499dae1d66ef8bfa7b2b72", "shasum": "" }, "require": { @@ -1204,20 +1205,20 @@ "object", "object graph" ], - "time": "2018-06-11T23:09:50+00:00" + "time": "2019-04-07T13:18:21+00:00" }, { "name": "nikic/php-parser", - "version": "v4.1.1", + "version": "v4.2.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "8aae5b59b83bb4d0dbf07b0a835f2680a658f610" + "reference": "5221f49a608808c1e4d436df32884cbc1b821ac0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/8aae5b59b83bb4d0dbf07b0a835f2680a658f610", - "reference": "8aae5b59b83bb4d0dbf07b0a835f2680a658f610", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/5221f49a608808c1e4d436df32884cbc1b821ac0", + "reference": "5221f49a608808c1e4d436df32884cbc1b821ac0", "shasum": "" }, "require": { @@ -1233,7 +1234,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.1-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -1255,7 +1256,7 @@ "parser", "php" ], - "time": "2018-12-26T11:32:39+00:00" + "time": "2019-02-16T20:54:15+00:00" }, { "name": "phar-io/manifest", @@ -1574,42 +1575,89 @@ ], "time": "2018-08-05T17:53:17+00:00" }, + { + "name": "phpstan/phpdoc-parser", + "version": "0.3.3", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpdoc-parser.git", + "reference": "472d3161d289f652713a5e353532fa4592663a57" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/472d3161d289f652713a5e353532fa4592663a57", + "reference": "472d3161d289f652713a5e353532fa4592663a57", + "shasum": "" + }, + "require": { + "php": "~7.1" + }, + "require-dev": { + "consistence/coding-standard": "^3.5", + "jakub-onderka/php-parallel-lint": "^0.9.2", + "phing/phing": "^2.16.0", + "phpstan/phpstan": "^0.10", + "phpunit/phpunit": "^6.3", + "slevomat/coding-standard": "^4.7.2", + "squizlabs/php_codesniffer": "^3.3.2", + "symfony/process": "^3.4 || ^4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "0.3-dev" + } + }, + "autoload": { + "psr-4": { + "PHPStan\\PhpDocParser\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPDoc parser with support for nullable, intersection and generic types", + "time": "2019-04-23T20:26:19+00:00" + }, { "name": "phpunit/php-code-coverage", - "version": "6.1.4", + "version": "7.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "807e6013b00af69b6c5d9ceb4282d0393dbb9d8d" + "reference": "0317a769a81845c390e19684d9ba25d7f6aa4707" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/807e6013b00af69b6c5d9ceb4282d0393dbb9d8d", - "reference": "807e6013b00af69b6c5d9ceb4282d0393dbb9d8d", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/0317a769a81845c390e19684d9ba25d7f6aa4707", + "reference": "0317a769a81845c390e19684d9ba25d7f6aa4707", "shasum": "" }, "require": { "ext-dom": "*", "ext-xmlwriter": "*", - "php": "^7.1", - "phpunit/php-file-iterator": "^2.0", + "php": "^7.2", + "phpunit/php-file-iterator": "^2.0.2", "phpunit/php-text-template": "^1.2.1", - "phpunit/php-token-stream": "^3.0", + "phpunit/php-token-stream": "^3.0.1", "sebastian/code-unit-reverse-lookup": "^1.0.1", - "sebastian/environment": "^3.1 || ^4.0", + "sebastian/environment": "^4.1", "sebastian/version": "^2.0.1", "theseer/tokenizer": "^1.1" }, "require-dev": { - "phpunit/phpunit": "^7.0" + "phpunit/phpunit": "^8.0" }, "suggest": { - "ext-xdebug": "^2.6.0" + "ext-xdebug": "^2.6.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "6.1-dev" + "dev-master": "7.0-dev" } }, "autoload": { @@ -1635,7 +1683,7 @@ "testing", "xunit" ], - "time": "2018-10-31T16:06:48+00:00" + "time": "2019-02-26T07:38:26+00:00" }, { "name": "phpunit/php-file-iterator", @@ -1730,16 +1778,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": { @@ -1751,7 +1799,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "2.1-dev" } }, "autoload": { @@ -1775,7 +1823,7 @@ "keywords": [ "timer" ], - "time": "2018-02-01T13:07:23+00:00" + "time": "2019-02-20T10:12:59+00:00" }, { "name": "phpunit/php-token-stream", @@ -1828,16 +1876,16 @@ }, { "name": "phpunit/phpunit", - "version": "7.5.1", + "version": "8.1.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "c23d78776ad415d5506e0679723cb461d71f488f" + "reference": "2a676677982b484ee36b54961f570c02eabbe7e1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c23d78776ad415d5506e0679723cb461d71f488f", - "reference": "c23d78776ad415d5506e0679723cb461d71f488f", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/2a676677982b484ee36b54961f570c02eabbe7e1", + "reference": "2a676677982b484ee36b54961f570c02eabbe7e1", "shasum": "" }, "require": { @@ -1847,27 +1895,25 @@ "ext-libxml": "*", "ext-mbstring": "*", "ext-xml": "*", + "ext-xmlwriter": "*", "myclabs/deep-copy": "^1.7", "phar-io/manifest": "^1.0.2", "phar-io/version": "^2.0", - "php": "^7.1", + "php": "^7.2", "phpspec/prophecy": "^1.7", - "phpunit/php-code-coverage": "^6.0.7", + "phpunit/php-code-coverage": "^7.0", "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", + "sebastian/environment": "^4.1", "sebastian/exporter": "^3.1", - "sebastian/global-state": "^2.0", + "sebastian/global-state": "^3.0", "sebastian/object-enumerator": "^3.0.3", "sebastian/resource-operations": "^2.0", "sebastian/version": "^2.0.1" }, - "conflict": { - "phpunit/phpunit-mock-objects": "*" - }, "require-dev": { "ext-pdo": "*" }, @@ -1882,7 +1928,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "7.5-dev" + "dev-master": "8.1-dev" } }, "autoload": { @@ -1908,7 +1954,7 @@ "testing", "xunit" ], - "time": "2018-12-12T07:20:32+00:00" + "time": "2019-04-19T15:52:00+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", @@ -2021,23 +2067,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", @@ -2073,32 +2119,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.2.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "febd209a219cea7b56ad799b30ebbea34b71eb8f" + "reference": "3095910f0f0fb155ac4021fc51a4a7a39ac04e8a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/febd209a219cea7b56ad799b30ebbea34b71eb8f", - "reference": "febd209a219cea7b56ad799b30ebbea34b71eb8f", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/3095910f0f0fb155ac4021fc51a4a7a39ac04e8a", + "reference": "3095910f0f0fb155ac4021fc51a4a7a39ac04e8a", "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.2-dev" } }, "autoload": { @@ -2123,7 +2172,7 @@ "environment", "hhvm" ], - "time": "2018-11-25T09:31:21+00:00" + "time": "2019-04-25T07:55:20+00:00" }, { "name": "sebastian/exporter", @@ -2194,23 +2243,26 @@ }, { "name": "sebastian/global-state", - "version": "2.0.0", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4" + "reference": "edf8a461cf1d4005f19fb0b6b8b95a9f7fa0adc4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4", - "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/edf8a461cf1d4005f19fb0b6b8b95a9f7fa0adc4", + "reference": "edf8a461cf1d4005f19fb0b6b8b95a9f7fa0adc4", "shasum": "" }, "require": { - "php": "^7.0" + "php": "^7.2", + "sebastian/object-reflector": "^1.1.1", + "sebastian/recursion-context": "^3.0" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "ext-dom": "*", + "phpunit/phpunit": "^8.0" }, "suggest": { "ext-uopz": "*" @@ -2218,7 +2270,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -2241,7 +2293,7 @@ "keywords": [ "global state" ], - "time": "2017-04-27T15:39:26+00:00" + "time": "2019-02-01T05:30:01+00:00" }, { "name": "sebastian/object-enumerator", @@ -2475,29 +2527,30 @@ }, { "name": "slevomat/coding-standard", - "version": "4.8.6", + "version": "5.0.4", "source": { "type": "git", "url": "https://github.com/slevomat/coding-standard.git", - "reference": "af0c0c99e84106525484ef25f15144b9831522bb" + "reference": "287ac3347c47918c0bf5e10335e36197ea10894c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/af0c0c99e84106525484ef25f15144b9831522bb", - "reference": "af0c0c99e84106525484ef25f15144b9831522bb", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/287ac3347c47918c0bf5e10335e36197ea10894c", + "reference": "287ac3347c47918c0bf5e10335e36197ea10894c", "shasum": "" }, "require": { "php": "^7.1", - "squizlabs/php_codesniffer": "^3.3.1" + "phpstan/phpdoc-parser": "^0.3.1", + "squizlabs/php_codesniffer": "^3.4.1" }, "require-dev": { "jakub-onderka/php-parallel-lint": "1.0.0", "phing/phing": "2.16.1", - "phpstan/phpstan": "0.9.2", - "phpstan/phpstan-phpunit": "0.9.4", - "phpstan/phpstan-strict-rules": "0.9", - "phpunit/phpunit": "7.3.5" + "phpstan/phpstan": "0.11.4", + "phpstan/phpstan-phpunit": "0.11", + "phpstan/phpstan-strict-rules": "0.11", + "phpunit/phpunit": "8.0.5" }, "type": "phpcodesniffer-standard", "autoload": { @@ -2510,20 +2563,20 @@ "MIT" ], "description": "Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.", - "time": "2018-11-03T21:28:29+00:00" + "time": "2019-03-22T19:10:53+00:00" }, { "name": "squizlabs/php_codesniffer", - "version": "3.4.0", + "version": "3.4.2", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "379deb987e26c7cd103a7b387aea178baec96e48" + "reference": "b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/379deb987e26c7cd103a7b387aea178baec96e48", - "reference": "379deb987e26c7cd103a7b387aea178baec96e48", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8", + "reference": "b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8", "shasum": "" }, "require": { @@ -2556,25 +2609,25 @@ } ], "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", - "homepage": "http://www.squizlabs.com/php-codesniffer", + "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", "keywords": [ "phpcs", "standards" ], - "time": "2018-12-19T23:57:18+00:00" + "time": "2019-04-10T23:49:02+00:00" }, { "name": "symfony/console", - "version": "v4.2.1", + "version": "v4.2.7", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "4dff24e5d01e713818805c1862d2e3f901ee7dd0" + "reference": "e2840bb38bddad7a0feaf85931e38fdcffdb2f81" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/4dff24e5d01e713818805c1862d2e3f901ee7dd0", - "reference": "4dff24e5d01e713818805c1862d2e3f901ee7dd0", + "url": "https://api.github.com/repos/symfony/console/zipball/e2840bb38bddad7a0feaf85931e38fdcffdb2f81", + "reference": "e2840bb38bddad7a0feaf85931e38fdcffdb2f81", "shasum": "" }, "require": { @@ -2586,6 +2639,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", @@ -2595,7 +2651,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": "" @@ -2630,7 +2686,7 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2018-11-27T07:40:44+00:00" + "time": "2019-04-08T14:23:48+00:00" }, { "name": "symfony/contracts", @@ -2702,16 +2758,16 @@ }, { "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": { @@ -2723,7 +2779,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -2756,20 +2812,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": { @@ -2781,7 +2837,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -2815,20 +2871,20 @@ "portable", "shim" ], - "time": "2018-09-21T13:07:52+00:00" + "time": "2019-02-06T07:57:58+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": { @@ -2855,7 +2911,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", @@ -3004,7 +3060,11 @@ ], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": { + "harmonyio/cache": 20, + "harmonyio/php-codesniffer-ruleset": 20, + "harmonyio/phpunit-extension": 20 + }, "prefer-stable": true, "prefer-lowest": false, "platform": { diff --git a/src/Client/ArtaxClient.php b/src/Client/ArtaxClient.php index 7b78d03..9e8552a 100644 --- a/src/Client/ArtaxClient.php +++ b/src/Client/ArtaxClient.php @@ -49,7 +49,7 @@ private function makeCachingRequest(CachingRequest $request): Promise yield $this->cache->store(new Item( $request->getCachingKey(), serialize($response), - $request->getTtl() + $request->getTtl(), )); } diff --git a/src/Message/Response.php b/src/Message/Response.php index 16ff915..489947b 100644 --- a/src/Message/Response.php +++ b/src/Message/Response.php @@ -17,7 +17,7 @@ class Response implements CacheableResponse /** @var string */ private $textualStatusCode; - /** @var array */ + /** @var array> */ private $headers = []; /** @var string */ @@ -62,7 +62,7 @@ public function getHeader(string $key): ?string } /** - * @return string[] + * @return array */ public function getHeaderArray(string $key): array { diff --git a/tests/Unit/Client/ArtaxClientTest.php b/tests/Unit/Client/ArtaxClientTest.php index 4a31b1a..732334b 100644 --- a/tests/Unit/Client/ArtaxClientTest.php +++ b/tests/Unit/Client/ArtaxClientTest.php @@ -27,8 +27,7 @@ class ArtaxClientTest extends TestCase /** @var MockObject|Cache */ private $cache; - // phpcs:ignore SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint - public function setUp() + public function setUp(): void { $this->artaxBaseClient = $this->createMock(ArtaxBaseClient::class); $this->cache = $this->createMock(Cache::class); diff --git a/tests/Unit/Exception/InvalidBodyTest.php b/tests/Unit/Exception/InvalidBodyTest.php index d4252ce..daceb44 100644 --- a/tests/Unit/Exception/InvalidBodyTest.php +++ b/tests/Unit/Exception/InvalidBodyTest.php @@ -19,7 +19,7 @@ public function testMessageWhenBodyTypeIsAnObject(): void { $this->expectException(InvalidBody::class); $this->expectExceptionMessage( - 'Expected body to be of type string|Amp\Artax\RequestBody, but got DateTimeImmutable.' + 'Expected body to be of type string|Amp\Artax\RequestBody, but got DateTimeImmutable.', ); throw new InvalidBody(new \DateTimeImmutable()); diff --git a/tests/Unit/Message/CachingRequestTest.php b/tests/Unit/Message/CachingRequestTest.php index 87e3d63..b3b2aa1 100644 --- a/tests/Unit/Message/CachingRequestTest.php +++ b/tests/Unit/Message/CachingRequestTest.php @@ -14,7 +14,7 @@ public function testImplementsCachingInterface(): void { $this->assertInstanceOf( CacheableRequest::class, - (new CachingRequest('TestKey', new Ttl(10), 'https://example.com')) + (new CachingRequest('TestKey', new Ttl(10), 'https://example.com')), ); } @@ -29,7 +29,7 @@ public function testGetTtl(): void { $this->assertSame( 10, - (new CachingRequest('TestKey', new Ttl(10), 'https://example.com'))->getTtl()->getTtlInSeconds() + (new CachingRequest('TestKey', new Ttl(10), 'https://example.com'))->getTtl()->getTtlInSeconds(), ); } } diff --git a/tests/Unit/Message/ResponseTest.php b/tests/Unit/Message/ResponseTest.php index aa685ca..94aa6ad 100644 --- a/tests/Unit/Message/ResponseTest.php +++ b/tests/Unit/Message/ResponseTest.php @@ -106,7 +106,7 @@ public function testSerialize(): void { $this->assertSame( require TEST_FIXTURE_DIR . '/Message/serialized-response.php', - serialize($this->response) + serialize($this->response), ); }