diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d1fe59..c9c6616 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,9 +20,6 @@ However, if you make use of the `raw`, `toArray`, or `toObject` functions, pleas * Exception\InvalidEndpointException * Exception\InvalidEndpointOptionsException * `vimeo/psalm` as a dev dependency - * New `Utils` functions: - * `validatePagination()` - to not only make sure the `page` and `per_page` are integers, but also locks to a min/max range. - * `validateCachePath()` - simplifies the cachePath check in `AbstractClient`. ### Changed diff --git a/composer.json b/composer.json index 8e6e507..bc98dc1 100644 --- a/composer.json +++ b/composer.json @@ -25,17 +25,17 @@ "security": "https://github.com/ericsizemore/librariesio/security/policy" }, "require": { - "php": "^8.2 <8.4", + "php": "^8.2 <8.5", "ext-json": "*", - "guzzlehttp/guzzle": "^7.0 <8.0", - "kevinrob/guzzle-cache-middleware": "^5.1 <6.0", + "guzzlehttp/guzzle": "^7.0", + "kevinrob/guzzle-cache-middleware": "^5.1", "symfony/cache": "^7.0" }, "require-dev": { - "esi/phpunit-coverage-check": "^1.0", - "friendsofphp/php-cs-fixer": "^3.53", + "esi/phpunit-coverage-check": "^2.0", + "friendsofphp/php-cs-fixer": "^3.54", "phpstan/extension-installer": "^1.2", - "phpstan/phpstan": "^1.11 <2.0", + "phpstan/phpstan": "^1.11", "phpstan/phpstan-phpunit": "^1.4", "phpstan/phpstan-strict-rules": "^1.6", "phpunit/phpunit": "^11.0", @@ -65,7 +65,7 @@ } }, "scripts": { - "coverage": "vendor/bin/coverage-check coverage:check build/logs/clover.xml 100 --ansi", + "coverage": "vendor/bin/coverage-check build/logs/clover.xml 100", "cs:check": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --dry-run --diff", "cs:fix": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php", "phpstan": "vendor/bin/phpstan analyse -c phpstan.neon", diff --git a/composer.lock b/composer.lock index fcc36c8..6859f94 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": "d4a79b3af3f914995a1e6ba44e511ba9", + "content-hash": "706b258aba7e798e785703408a7ad46e", "packages": [ { "name": "guzzlehttp/guzzle", @@ -1173,16 +1173,16 @@ "packages-dev": [ { "name": "amphp/amp", - "version": "v3.0.0", + "version": "v3.0.1", "source": { "type": "git", "url": "https://github.com/amphp/amp.git", - "reference": "aaf0ec1d5a2c20b523258995a10e80c1fb765871" + "reference": "ff63f10210adb6e83335e0e25522bac5cd7dc4e2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/amp/zipball/aaf0ec1d5a2c20b523258995a10e80c1fb765871", - "reference": "aaf0ec1d5a2c20b523258995a10e80c1fb765871", + "url": "https://api.github.com/repos/amphp/amp/zipball/ff63f10210adb6e83335e0e25522bac5cd7dc4e2", + "reference": "ff63f10210adb6e83335e0e25522bac5cd7dc4e2", "shasum": "" }, "require": { @@ -1192,7 +1192,7 @@ "require-dev": { "amphp/php-cs-fixer-config": "^2", "phpunit/phpunit": "^9", - "psalm/phar": "^4.13" + "psalm/phar": "5.23.1" }, "type": "library", "autoload": { @@ -1242,7 +1242,7 @@ ], "support": { "issues": "https://github.com/amphp/amp/issues", - "source": "https://github.com/amphp/amp/tree/v3.0.0" + "source": "https://github.com/amphp/amp/tree/v3.0.1" }, "funding": [ { @@ -1250,7 +1250,7 @@ "type": "github" } ], - "time": "2022-12-18T16:52:44+00:00" + "time": "2024-04-18T15:24:36+00:00" }, { "name": "amphp/byte-stream", @@ -1966,30 +1966,31 @@ }, { "name": "esi/phpunit-coverage-check", - "version": "1.0.0", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/ericsizemore/phpunit-coverage-check.git", - "reference": "903def03a9c0290fe5a151e081e5e14babc046f1" + "reference": "5a69a14178f140e8a3d9db47586029d535e47a24" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ericsizemore/phpunit-coverage-check/zipball/903def03a9c0290fe5a151e081e5e14babc046f1", - "reference": "903def03a9c0290fe5a151e081e5e14babc046f1", + "url": "https://api.github.com/repos/ericsizemore/phpunit-coverage-check/zipball/5a69a14178f140e8a3d9db47586029d535e47a24", + "reference": "5a69a14178f140e8a3d9db47586029d535e47a24", "shasum": "" }, "require": { + "ext-libxml": "*", "ext-simplexml": "*", - "php": "^8.1 <8.5", - "symfony/console": "^6.1 || ^7.0" + "php": "^8.2 <8.5", + "symfony/console": "^7.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "dev-master", + "friendsofphp/php-cs-fixer": "^3.54", "phpstan/phpstan": "^1.11", + "phpstan/phpstan-deprecation-rules": "^1.2", "phpstan/phpstan-phpunit": "^1.4", "phpstan/phpstan-strict-rules": "^1.6", - "phpstan/phpstan-symfony": "^1.3.0", - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^11.0" }, "bin": [ "coverage-check" @@ -1997,7 +1998,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "2.x-dev" } }, "autoload": { @@ -2041,19 +2042,19 @@ }, "funding": [ { - "url": "https://github.com/ericsizemore", - "type": "github" + "url": "https://ko-fi.com/ericsizemore", + "type": "custom" }, { - "url": "https://ko-fi.com/ericsizemore", - "type": "ko_fi" + "url": "https://github.com/ericsizemore", + "type": "github" }, { "url": "https://tidelift.com/funding/github/packagist/esi/phpunit-coverage-check", "type": "tidelift" } ], - "time": "2024-03-26T06:04:27+00:00" + "time": "2024-04-21T06:33:41+00:00" }, { "name": "felixfbecker/advanced-json-rpc", @@ -2651,28 +2652,35 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.3.0", + "version": "5.4.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" + "reference": "298d2febfe79d03fe714eb871d5538da55205b1a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/298d2febfe79d03fe714eb871d5538da55205b1a", + "reference": "298d2febfe79d03fe714eb871d5538da55205b1a", "shasum": "" }, "require": { + "doctrine/deprecations": "^1.1", "ext-filter": "*", - "php": "^7.2 || ^8.0", + "php": "^7.4 || ^8.0", "phpdocumentor/reflection-common": "^2.2", - "phpdocumentor/type-resolver": "^1.3", + "phpdocumentor/type-resolver": "^1.7", + "phpstan/phpdoc-parser": "^1.7", "webmozart/assert": "^1.9.1" }, "require-dev": { - "mockery/mockery": "~1.3.2", - "psalm/phar": "^4.8" + "mockery/mockery": "~1.3.5", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-webmozart-assert": "^1.2", + "phpunit/phpunit": "^9.5", + "vimeo/psalm": "^5.13" }, "type": "library", "extra": { @@ -2696,15 +2704,15 @@ }, { "name": "Jaap van Otterdijk", - "email": "account@ijaap.nl" + "email": "opensource@ijaap.nl" } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", "support": { "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.4.0" }, - "time": "2021-10-19T17:43:47+00:00" + "time": "2024-04-09T21:13:58+00:00" }, { "name": "phpdocumentor/type-resolver", @@ -2861,12 +2869,12 @@ "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "a64998153ccbfb5a7801c9776d91b8cf5fc1181c" + "reference": "aced8be9263840f10eadba63cfb2de2473706377" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/a64998153ccbfb5a7801c9776d91b8cf5fc1181c", - "reference": "a64998153ccbfb5a7801c9776d91b8cf5fc1181c", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/aced8be9263840f10eadba63cfb2de2473706377", + "reference": "aced8be9263840f10eadba63cfb2de2473706377", "shasum": "" }, "require": { @@ -2912,7 +2920,7 @@ "type": "github" } ], - "time": "2024-04-11T09:25:15+00:00" + "time": "2024-04-20T21:06:39+00:00" }, { "name": "phpstan/phpstan-phpunit", @@ -2920,12 +2928,12 @@ "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-phpunit.git", - "reference": "f93aec74624bcdb9773da40a729f111df1f6e22a" + "reference": "f3ea021866f4263f07ca3636bf22c64be9610c11" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/f93aec74624bcdb9773da40a729f111df1f6e22a", - "reference": "f93aec74624bcdb9773da40a729f111df1f6e22a", + "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/f3ea021866f4263f07ca3636bf22c64be9610c11", + "reference": "f3ea021866f4263f07ca3636bf22c64be9610c11", "shasum": "" }, "require": { @@ -2965,7 +2973,7 @@ "issues": "https://github.com/phpstan/phpstan-phpunit/issues", "source": "https://github.com/phpstan/phpstan-phpunit/tree/1.4.x" }, - "time": "2024-02-23T09:52:11+00:00" + "time": "2024-04-20T06:39:00+00:00" }, { "name": "phpstan/phpstan-strict-rules", @@ -2973,12 +2981,12 @@ "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-strict-rules.git", - "reference": "1a51fae7892bf7488cc7edf106ad579235bf53a0" + "reference": "363f921dd8441777d4fc137deb99beb486c77df1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/1a51fae7892bf7488cc7edf106ad579235bf53a0", - "reference": "1a51fae7892bf7488cc7edf106ad579235bf53a0", + "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/363f921dd8441777d4fc137deb99beb486c77df1", + "reference": "363f921dd8441777d4fc137deb99beb486c77df1", "shasum": "" }, "require": { @@ -3015,7 +3023,7 @@ "issues": "https://github.com/phpstan/phpstan-strict-rules/issues", "source": "https://github.com/phpstan/phpstan-strict-rules/tree/1.6.x" }, - "time": "2024-04-06T07:45:29+00:00" + "time": "2024-04-20T06:37:51+00:00" }, { "name": "phpunit/php-code-coverage", @@ -5790,12 +5798,12 @@ "source": { "type": "git", "url": "https://github.com/vimeo/psalm.git", - "reference": "ef3b018e89c4ffc157332c13e2ebf9cf22320d17" + "reference": "08afc45a81d1f7c5145341ddf4c3c2c8b1985ed2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vimeo/psalm/zipball/ef3b018e89c4ffc157332c13e2ebf9cf22320d17", - "reference": "ef3b018e89c4ffc157332c13e2ebf9cf22320d17", + "url": "https://api.github.com/repos/vimeo/psalm/zipball/08afc45a81d1f7c5145341ddf4c3c2c8b1985ed2", + "reference": "08afc45a81d1f7c5145341ddf4c3c2c8b1985ed2", "shasum": "" }, "require": { @@ -5891,7 +5899,7 @@ "issues": "https://github.com/vimeo/psalm/issues", "source": "https://github.com/vimeo/psalm" }, - "time": "2024-03-09T19:31:51+00:00" + "time": "2024-04-11T20:02:02+00:00" }, { "name": "webmozart/assert", @@ -5960,7 +5968,7 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": "^8.2 <8.4", + "php": "^8.2 <8.5", "ext-json": "*" }, "platform-dev": [],