diff --git a/.github/workflows/code_style.yml b/.github/workflows/code_style.yml index 61a0e7a..320ac1e 100644 --- a/.github/workflows/code_style.yml +++ b/.github/workflows/code_style.yml @@ -14,7 +14,7 @@ jobs: php: [ '8.1' ] name: PHP ${{ matrix.php }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} diff --git a/.github/workflows/composer.yml b/.github/workflows/composer.yml index aa53973..9799bf5 100644 --- a/.github/workflows/composer.yml +++ b/.github/workflows/composer.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Validate composer.json and composer.lock run: composer validate --strict diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index ddff159..f684f2d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -15,7 +15,7 @@ jobs: name: PHPUnit steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v4" - name: "Setup PHP cache environment" id: "extcache" diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 7f1c84c..e679c21 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -10,10 +10,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: [ '8.1', '8.2', '8.3' ] + php: [ '8.1', '8.2', '8.3', '8.4' ] name: PHP ${{ matrix.php }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index 92e8462..630d6be 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -10,10 +10,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: [ '8.1', '8.2', '8.3' ] + php: [ '8.1', '8.2', '8.3', '8.4' ] name: PHP ${{ matrix.php }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} diff --git a/composer.json b/composer.json index 106a37d..b52ff3b 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ } ], "require": { - "php": ">=8.1 <8.4", + "php": ">=8.1 <8.5", "psr/http-message": "^2.0", "php-http/client-implementation": "^1.0", "php-http/httplug": "^2.4", diff --git a/composer.lock b/composer.lock index 401bacb..aaa8b22 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": "be68901105b9cf8c92b1fadba73d313f", + "content-hash": "25ebcb97ae2e2c96c2e337272d29a8d3", "packages": [ { "name": "clue/stream-filter", @@ -74,16 +74,16 @@ }, { "name": "guzzlehttp/psr7", - "version": "2.6.2", + "version": "2.7.0", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "45b30f99ac27b5ca93cb4831afe16285f57b8221" + "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/45b30f99ac27b5ca93cb4831afe16285f57b8221", - "reference": "45b30f99ac27b5ca93cb4831afe16285f57b8221", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/a70f5c95fb43bc83f07c9c948baa0dc1829bf201", + "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201", "shasum": "" }, "require": { @@ -98,8 +98,8 @@ }, "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", - "http-interop/http-factory-tests": "^0.9", - "phpunit/phpunit": "^8.5.36 || ^9.6.15" + "http-interop/http-factory-tests": "0.9.0", + "phpunit/phpunit": "^8.5.39 || ^9.6.20" }, "suggest": { "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" @@ -170,7 +170,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.6.2" + "source": "https://github.com/guzzle/psr7/tree/2.7.0" }, "funding": [ { @@ -186,20 +186,20 @@ "type": "tidelift" } ], - "time": "2023-12-03T20:05:35+00:00" + "time": "2024-07-18T11:15:46+00:00" }, { "name": "php-http/discovery", - "version": "1.19.4", + "version": "1.20.0", "source": { "type": "git", "url": "https://github.com/php-http/discovery.git", - "reference": "0700efda8d7526335132360167315fdab3aeb599" + "reference": "82fe4c73ef3363caed49ff8dd1539ba06044910d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-http/discovery/zipball/0700efda8d7526335132360167315fdab3aeb599", - "reference": "0700efda8d7526335132360167315fdab3aeb599", + "url": "https://api.github.com/repos/php-http/discovery/zipball/82fe4c73ef3363caed49ff8dd1539ba06044910d", + "reference": "82fe4c73ef3363caed49ff8dd1539ba06044910d", "shasum": "" }, "require": { @@ -263,22 +263,22 @@ ], "support": { "issues": "https://github.com/php-http/discovery/issues", - "source": "https://github.com/php-http/discovery/tree/1.19.4" + "source": "https://github.com/php-http/discovery/tree/1.20.0" }, - "time": "2024-03-29T13:00:05+00:00" + "time": "2024-10-02T11:20:13+00:00" }, { "name": "php-http/httplug", - "version": "2.4.0", + "version": "2.4.1", "source": { "type": "git", "url": "https://github.com/php-http/httplug.git", - "reference": "625ad742c360c8ac580fcc647a1541d29e257f67" + "reference": "5cad731844891a4c282f3f3e1b582c46839d22f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-http/httplug/zipball/625ad742c360c8ac580fcc647a1541d29e257f67", - "reference": "625ad742c360c8ac580fcc647a1541d29e257f67", + "url": "https://api.github.com/repos/php-http/httplug/zipball/5cad731844891a4c282f3f3e1b582c46839d22f4", + "reference": "5cad731844891a4c282f3f3e1b582c46839d22f4", "shasum": "" }, "require": { @@ -320,22 +320,22 @@ ], "support": { "issues": "https://github.com/php-http/httplug/issues", - "source": "https://github.com/php-http/httplug/tree/2.4.0" + "source": "https://github.com/php-http/httplug/tree/2.4.1" }, - "time": "2023-04-14T15:10:03+00:00" + "time": "2024-09-23T11:39:58+00:00" }, { "name": "php-http/message", - "version": "1.16.1", + "version": "1.16.2", "source": { "type": "git", "url": "https://github.com/php-http/message.git", - "reference": "5997f3289332c699fa2545c427826272498a2088" + "reference": "06dd5e8562f84e641bf929bfe699ee0f5ce8080a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-http/message/zipball/5997f3289332c699fa2545c427826272498a2088", - "reference": "5997f3289332c699fa2545c427826272498a2088", + "url": "https://api.github.com/repos/php-http/message/zipball/06dd5e8562f84e641bf929bfe699ee0f5ce8080a", + "reference": "06dd5e8562f84e641bf929bfe699ee0f5ce8080a", "shasum": "" }, "require": { @@ -389,9 +389,9 @@ ], "support": { "issues": "https://github.com/php-http/message/issues", - "source": "https://github.com/php-http/message/tree/1.16.1" + "source": "https://github.com/php-http/message/tree/1.16.2" }, - "time": "2024-03-07T13:22:09+00:00" + "time": "2024-10-02T11:34:13+00:00" }, { "name": "php-http/promise", @@ -792,22 +792,22 @@ "packages-dev": [ { "name": "guzzlehttp/guzzle", - "version": "7.8.1", + "version": "7.9.2", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "41042bc7ab002487b876a0683fc8dce04ddce104" + "reference": "d281ed313b989f213357e3be1a179f02196ac99b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/41042bc7ab002487b876a0683fc8dce04ddce104", - "reference": "41042bc7ab002487b876a0683fc8dce04ddce104", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/d281ed313b989f213357e3be1a179f02196ac99b", + "reference": "d281ed313b989f213357e3be1a179f02196ac99b", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^1.5.3 || ^2.0.1", - "guzzlehttp/psr7": "^1.9.1 || ^2.5.1", + "guzzlehttp/promises": "^1.5.3 || ^2.0.3", + "guzzlehttp/psr7": "^2.7.0", "php": "^7.2.5 || ^8.0", "psr/http-client": "^1.0", "symfony/deprecation-contracts": "^2.2 || ^3.0" @@ -818,9 +818,9 @@ "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", "ext-curl": "*", - "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", + "guzzle/client-integration-tests": "3.0.2", "php-http/message-factory": "^1.1", - "phpunit/phpunit": "^8.5.36 || ^9.6.15", + "phpunit/phpunit": "^8.5.39 || ^9.6.20", "psr/log": "^1.1 || ^2.0 || ^3.0" }, "suggest": { @@ -898,7 +898,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.8.1" + "source": "https://github.com/guzzle/guzzle/tree/7.9.2" }, "funding": [ { @@ -914,20 +914,20 @@ "type": "tidelift" } ], - "time": "2023-12-03T20:35:24+00:00" + "time": "2024-07-24T11:22:20+00:00" }, { "name": "guzzlehttp/promises", - "version": "2.0.2", + "version": "2.0.4", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "bbff78d96034045e58e13dedd6ad91b5d1253223" + "reference": "f9c436286ab2892c7db7be8c8da4ef61ccf7b455" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/bbff78d96034045e58e13dedd6ad91b5d1253223", - "reference": "bbff78d96034045e58e13dedd6ad91b5d1253223", + "url": "https://api.github.com/repos/guzzle/promises/zipball/f9c436286ab2892c7db7be8c8da4ef61ccf7b455", + "reference": "f9c436286ab2892c7db7be8c8da4ef61ccf7b455", "shasum": "" }, "require": { @@ -935,7 +935,7 @@ }, "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", - "phpunit/phpunit": "^8.5.36 || ^9.6.15" + "phpunit/phpunit": "^8.5.39 || ^9.6.20" }, "type": "library", "extra": { @@ -981,7 +981,7 @@ ], "support": { "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/2.0.2" + "source": "https://github.com/guzzle/promises/tree/2.0.4" }, "funding": [ { @@ -997,20 +997,20 @@ "type": "tidelift" } ], - "time": "2023-12-03T20:19:20+00:00" + "time": "2024-10-17T10:06:22+00:00" }, { "name": "jetbrains/phpstorm-attributes", - "version": "1.1", + "version": "1.2", "source": { "type": "git", "url": "https://github.com/JetBrains/phpstorm-attributes.git", - "reference": "22fb28d679deceedba8366dbae65cc8ebfc17e26" + "reference": "64de815a4509c29e00d5e3474087fd24c171afc2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/JetBrains/phpstorm-attributes/zipball/22fb28d679deceedba8366dbae65cc8ebfc17e26", - "reference": "22fb28d679deceedba8366dbae65cc8ebfc17e26", + "url": "https://api.github.com/repos/JetBrains/phpstorm-attributes/zipball/64de815a4509c29e00d5e3474087fd24c171afc2", + "reference": "64de815a4509c29e00d5e3474087fd24c171afc2", "shasum": "" }, "type": "library", @@ -1037,22 +1037,22 @@ ], "support": { "issues": "https://youtrack.jetbrains.com/newIssue?project=WI", - "source": "https://github.com/JetBrains/phpstorm-attributes/tree/1.1" + "source": "https://github.com/JetBrains/phpstorm-attributes/tree/1.2" }, - "time": "2023-09-01T08:50:25+00:00" + "time": "2024-10-11T10:46:19+00:00" }, { "name": "myclabs/deep-copy", - "version": "1.11.1", + "version": "1.12.1", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c" + "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", - "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/123267b2c49fbf30d78a7b2d333f6be754b94845", + "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845", "shasum": "" }, "require": { @@ -1060,11 +1060,12 @@ }, "conflict": { "doctrine/collections": "<1.6.8", - "doctrine/common": "<2.13.3 || >=3,<3.2.2" + "doctrine/common": "<2.13.3 || >=3 <3.2.2" }, "require-dev": { "doctrine/collections": "^1.6.8", "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" }, "type": "library", @@ -1090,7 +1091,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1" + "source": "https://github.com/myclabs/DeepCopy/tree/1.12.1" }, "funding": [ { @@ -1098,20 +1099,20 @@ "type": "tidelift" } ], - "time": "2023-03-08T13:26:56+00:00" + "time": "2024-11-08T17:47:46+00:00" }, { "name": "nikic/php-parser", - "version": "v5.0.2", + "version": "v5.3.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "139676794dc1e9231bf7bcd123cfc0c99182cb13" + "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/139676794dc1e9231bf7bcd123cfc0c99182cb13", - "reference": "139676794dc1e9231bf7bcd123cfc0c99182cb13", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/8eea230464783aa9671db8eea6f8c6ac5285794b", + "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b", "shasum": "" }, "require": { @@ -1122,7 +1123,7 @@ }, "require-dev": { "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" + "phpunit/phpunit": "^9.0" }, "bin": [ "bin/php-parse" @@ -1154,9 +1155,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.0.2" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.3.1" }, - "time": "2024-03-05T20:51:40+00:00" + "time": "2024-10-08T18:51:32+00:00" }, { "name": "phar-io/manifest", @@ -1278,21 +1279,21 @@ }, { "name": "php-http/guzzle7-adapter", - "version": "1.0.0", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/php-http/guzzle7-adapter.git", - "reference": "fb075a71dbfa4847cf0c2938c4e5a9c478ef8b01" + "reference": "03a415fde709c2f25539790fecf4d9a31bc3d0eb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-http/guzzle7-adapter/zipball/fb075a71dbfa4847cf0c2938c4e5a9c478ef8b01", - "reference": "fb075a71dbfa4847cf0c2938c4e5a9c478ef8b01", + "url": "https://api.github.com/repos/php-http/guzzle7-adapter/zipball/03a415fde709c2f25539790fecf4d9a31bc3d0eb", + "reference": "03a415fde709c2f25539790fecf4d9a31bc3d0eb", "shasum": "" }, "require": { "guzzlehttp/guzzle": "^7.0", - "php": "^7.2 | ^8.0", + "php": "^7.3 | ^8.0", "php-http/httplug": "^2.0", "psr/http-client": "^1.0" }, @@ -1303,14 +1304,11 @@ }, "require-dev": { "php-http/client-integration-tests": "^3.0", + "php-http/message-factory": "^1.1", + "phpspec/prophecy-phpunit": "^2.0", "phpunit/phpunit": "^8.0|^9.3" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "0.2.x-dev" - } - }, "autoload": { "psr-4": { "Http\\Adapter\\Guzzle7\\": "src/" @@ -1334,22 +1332,22 @@ ], "support": { "issues": "https://github.com/php-http/guzzle7-adapter/issues", - "source": "https://github.com/php-http/guzzle7-adapter/tree/1.0.0" + "source": "https://github.com/php-http/guzzle7-adapter/tree/1.1.0" }, - "time": "2021-03-09T07:35:15+00:00" + "time": "2024-11-26T11:14:36+00:00" }, { "name": "phpstan/phpstan", - "version": "1.11.1", + "version": "1.12.11", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "e524358f930e41a2b4cca1320e3b04fc26b39e0b" + "reference": "0d1fc20a962a91be578bcfe7cf939e6e1a2ff733" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e524358f930e41a2b4cca1320e3b04fc26b39e0b", - "reference": "e524358f930e41a2b4cca1320e3b04fc26b39e0b", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/0d1fc20a962a91be578bcfe7cf939e6e1a2ff733", + "reference": "0d1fc20a962a91be578bcfe7cf939e6e1a2ff733", "shasum": "" }, "require": { @@ -1394,25 +1392,25 @@ "type": "github" } ], - "time": "2024-05-15T08:00:59+00:00" + "time": "2024-11-17T14:08:01+00:00" }, { "name": "phpstan/phpstan-deprecation-rules", - "version": "1.2.0", + "version": "1.2.1", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-deprecation-rules.git", - "reference": "fa8cce7720fa782899a0aa97b6a41225d1bb7b26" + "reference": "f94d246cc143ec5a23da868f8f7e1393b50eaa82" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-deprecation-rules/zipball/fa8cce7720fa782899a0aa97b6a41225d1bb7b26", - "reference": "fa8cce7720fa782899a0aa97b6a41225d1bb7b26", + "url": "https://api.github.com/repos/phpstan/phpstan-deprecation-rules/zipball/f94d246cc143ec5a23da868f8f7e1393b50eaa82", + "reference": "f94d246cc143ec5a23da868f8f7e1393b50eaa82", "shasum": "" }, "require": { "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.11" + "phpstan/phpstan": "^1.12" }, "require-dev": { "php-parallel-lint/php-parallel-lint": "^1.2", @@ -1439,27 +1437,27 @@ "description": "PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.", "support": { "issues": "https://github.com/phpstan/phpstan-deprecation-rules/issues", - "source": "https://github.com/phpstan/phpstan-deprecation-rules/tree/1.2.0" + "source": "https://github.com/phpstan/phpstan-deprecation-rules/tree/1.2.1" }, - "time": "2024-04-20T06:39:48+00:00" + "time": "2024-09-11T15:52:35+00:00" }, { "name": "phpstan/phpstan-nette", - "version": "1.3.0", + "version": "1.3.8", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-nette.git", - "reference": "8af94743efcc6d1e685f2ffd7ab279e39c96429c" + "reference": "bc74b8b208b47f163fe55708fcf1a0333247fa79" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-nette/zipball/8af94743efcc6d1e685f2ffd7ab279e39c96429c", - "reference": "8af94743efcc6d1e685f2ffd7ab279e39c96429c", + "url": "https://api.github.com/repos/phpstan/phpstan-nette/zipball/bc74b8b208b47f163fe55708fcf1a0333247fa79", + "reference": "bc74b8b208b47f163fe55708fcf1a0333247fa79", "shasum": "" }, "require": { "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.10" + "phpstan/phpstan": "^1.11.11" }, "conflict": { "nette/application": "<2.3.0", @@ -1477,7 +1475,7 @@ "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/phpstan-phpunit": "^1.0", "phpstan/phpstan-strict-rules": "^1.0", - "phpunit/phpunit": "^9.5" + "phpunit/phpunit": "~9.5.28" }, "type": "phpstan-extension", "extra": { @@ -1500,27 +1498,27 @@ "description": "Nette Framework class reflection extension for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-nette/issues", - "source": "https://github.com/phpstan/phpstan-nette/tree/1.3.0" + "source": "https://github.com/phpstan/phpstan-nette/tree/1.3.8" }, - "time": "2024-04-20T06:40:32+00:00" + "time": "2024-08-25T12:11:12+00:00" }, { "name": "phpstan/phpstan-strict-rules", - "version": "1.6.0", + "version": "1.6.1", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-strict-rules.git", - "reference": "363f921dd8441777d4fc137deb99beb486c77df1" + "reference": "daeec748b53de80a97498462513066834ec28f8b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/363f921dd8441777d4fc137deb99beb486c77df1", - "reference": "363f921dd8441777d4fc137deb99beb486c77df1", + "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/daeec748b53de80a97498462513066834ec28f8b", + "reference": "daeec748b53de80a97498462513066834ec28f8b", "shasum": "" }, "require": { "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.11" + "phpstan/phpstan": "^1.12.4" }, "require-dev": { "nikic/php-parser": "^4.13.0", @@ -1549,38 +1547,38 @@ "description": "Extra strict and opinionated rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-strict-rules/issues", - "source": "https://github.com/phpstan/phpstan-strict-rules/tree/1.6.0" + "source": "https://github.com/phpstan/phpstan-strict-rules/tree/1.6.1" }, - "time": "2024-04-20T06:37:51+00:00" + "time": "2024-09-20T14:04:44+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "10.1.14", + "version": "10.1.16", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "e3f51450ebffe8e0efdf7346ae966a656f7d5e5b" + "reference": "7e308268858ed6baedc8704a304727d20bc07c77" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/e3f51450ebffe8e0efdf7346ae966a656f7d5e5b", - "reference": "e3f51450ebffe8e0efdf7346ae966a656f7d5e5b", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/7e308268858ed6baedc8704a304727d20bc07c77", + "reference": "7e308268858ed6baedc8704a304727d20bc07c77", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.18 || ^5.0", + "nikic/php-parser": "^4.19.1 || ^5.1.0", "php": ">=8.1", - "phpunit/php-file-iterator": "^4.0", - "phpunit/php-text-template": "^3.0", - "sebastian/code-unit-reverse-lookup": "^3.0", - "sebastian/complexity": "^3.0", - "sebastian/environment": "^6.0", - "sebastian/lines-of-code": "^2.0", - "sebastian/version": "^4.0", - "theseer/tokenizer": "^1.2.0" + "phpunit/php-file-iterator": "^4.1.0", + "phpunit/php-text-template": "^3.0.1", + "sebastian/code-unit-reverse-lookup": "^3.0.0", + "sebastian/complexity": "^3.2.0", + "sebastian/environment": "^6.1.0", + "sebastian/lines-of-code": "^2.0.2", + "sebastian/version": "^4.0.1", + "theseer/tokenizer": "^1.2.3" }, "require-dev": { "phpunit/phpunit": "^10.1" @@ -1592,7 +1590,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "10.1-dev" + "dev-main": "10.1.x-dev" } }, "autoload": { @@ -1621,7 +1619,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.14" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.16" }, "funding": [ { @@ -1629,7 +1627,7 @@ "type": "github" } ], - "time": "2024-03-12T15:33:41+00:00" + "time": "2024-08-22T04:31:57+00:00" }, { "name": "phpunit/php-file-iterator", @@ -1876,16 +1874,16 @@ }, { "name": "phpunit/phpunit", - "version": "10.5.20", + "version": "10.5.38", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "547d314dc24ec1e177720d45c6263fb226cc2ae3" + "reference": "a86773b9e887a67bc53efa9da9ad6e3f2498c132" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/547d314dc24ec1e177720d45c6263fb226cc2ae3", - "reference": "547d314dc24ec1e177720d45c6263fb226cc2ae3", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a86773b9e887a67bc53efa9da9ad6e3f2498c132", + "reference": "a86773b9e887a67bc53efa9da9ad6e3f2498c132", "shasum": "" }, "require": { @@ -1895,26 +1893,26 @@ "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.10.1", - "phar-io/manifest": "^2.0.3", - "phar-io/version": "^3.0.2", + "myclabs/deep-copy": "^1.12.0", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", "php": ">=8.1", - "phpunit/php-code-coverage": "^10.1.5", - "phpunit/php-file-iterator": "^4.0", - "phpunit/php-invoker": "^4.0", - "phpunit/php-text-template": "^3.0", - "phpunit/php-timer": "^6.0", - "sebastian/cli-parser": "^2.0", - "sebastian/code-unit": "^2.0", - "sebastian/comparator": "^5.0", - "sebastian/diff": "^5.0", - "sebastian/environment": "^6.0", - "sebastian/exporter": "^5.1", - "sebastian/global-state": "^6.0.1", - "sebastian/object-enumerator": "^5.0", - "sebastian/recursion-context": "^5.0", - "sebastian/type": "^4.0", - "sebastian/version": "^4.0" + "phpunit/php-code-coverage": "^10.1.16", + "phpunit/php-file-iterator": "^4.1.0", + "phpunit/php-invoker": "^4.0.0", + "phpunit/php-text-template": "^3.0.1", + "phpunit/php-timer": "^6.0.0", + "sebastian/cli-parser": "^2.0.1", + "sebastian/code-unit": "^2.0.0", + "sebastian/comparator": "^5.0.3", + "sebastian/diff": "^5.1.1", + "sebastian/environment": "^6.1.0", + "sebastian/exporter": "^5.1.2", + "sebastian/global-state": "^6.0.2", + "sebastian/object-enumerator": "^5.0.0", + "sebastian/recursion-context": "^5.0.0", + "sebastian/type": "^4.0.0", + "sebastian/version": "^4.0.1" }, "suggest": { "ext-soap": "To be able to generate mocks based on WSDL files" @@ -1957,7 +1955,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.20" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.38" }, "funding": [ { @@ -1973,25 +1971,25 @@ "type": "tidelift" } ], - "time": "2024-04-24T06:32:35+00:00" + "time": "2024-10-28T13:06:21+00:00" }, { "name": "rector/rector", - "version": "1.1.0", + "version": "1.2.10", "source": { "type": "git", "url": "https://github.com/rectorphp/rector.git", - "reference": "556509e2dcf527369892b7d411379c4a02f31859" + "reference": "40f9cf38c05296bd32f444121336a521a293fa61" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/556509e2dcf527369892b7d411379c4a02f31859", - "reference": "556509e2dcf527369892b7d411379c4a02f31859", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/40f9cf38c05296bd32f444121336a521a293fa61", + "reference": "40f9cf38c05296bd32f444121336a521a293fa61", "shasum": "" }, "require": { "php": "^7.2|^8.0", - "phpstan/phpstan": "^1.11" + "phpstan/phpstan": "^1.12.5" }, "conflict": { "rector/rector-doctrine": "*", @@ -2024,7 +2022,7 @@ ], "support": { "issues": "https://github.com/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/1.1.0" + "source": "https://github.com/rectorphp/rector/tree/1.2.10" }, "funding": [ { @@ -2032,7 +2030,7 @@ "type": "github" } ], - "time": "2024-05-18T09:40:27+00:00" + "time": "2024-11-08T13:59:10+00:00" }, { "name": "sebastian/cli-parser", @@ -2204,16 +2202,16 @@ }, { "name": "sebastian/comparator", - "version": "5.0.1", + "version": "5.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "2db5010a484d53ebf536087a70b4a5423c102372" + "reference": "a18251eb0b7a2dcd2f7aa3d6078b18545ef0558e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2db5010a484d53ebf536087a70b4a5423c102372", - "reference": "2db5010a484d53ebf536087a70b4a5423c102372", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/a18251eb0b7a2dcd2f7aa3d6078b18545ef0558e", + "reference": "a18251eb0b7a2dcd2f7aa3d6078b18545ef0558e", "shasum": "" }, "require": { @@ -2224,7 +2222,7 @@ "sebastian/exporter": "^5.0" }, "require-dev": { - "phpunit/phpunit": "^10.3" + "phpunit/phpunit": "^10.5" }, "type": "library", "extra": { @@ -2269,7 +2267,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", "security": "https://github.com/sebastianbergmann/comparator/security/policy", - "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.1" + "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.3" }, "funding": [ { @@ -2277,7 +2275,7 @@ "type": "github" } ], - "time": "2023-08-14T13:18:12+00:00" + "time": "2024-10-18T14:56:07+00:00" }, { "name": "sebastian/complexity", @@ -2993,16 +2991,16 @@ }, { "name": "symfony/deprecation-contracts", - "version": "v3.5.0", + "version": "v3.5.1", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1" + "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", + "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", "shasum": "" }, "require": { @@ -3040,7 +3038,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1" }, "funding": [ { @@ -3056,7 +3054,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2024-09-25T14:20:29+00:00" }, { "name": "thecodingmachine/phpstan-safe-rule", @@ -3168,12 +3166,12 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=8.1 <8.4" + "php": ">=8.1 <8.5" }, - "platform-dev": [], + "platform-dev": {}, "plugin-api-version": "2.6.0" } diff --git a/src/Authentication/OAuth2Client.php b/src/Authentication/OAuth2Client.php index 6e91ddf..9872d75 100755 --- a/src/Authentication/OAuth2Client.php +++ b/src/Authentication/OAuth2Client.php @@ -221,7 +221,7 @@ protected function requestAnAccessToken(array $params): AccessToken protected function sendRequestWithClientParams( string $endpoint, array $params, - AccessToken|string $accessToken = null, + AccessToken|string|null $accessToken = null, ): Response { $params += $this->getClientParams(); diff --git a/src/BatchRequest.php b/src/BatchRequest.php index b4774a1..33da83d 100755 --- a/src/BatchRequest.php +++ b/src/BatchRequest.php @@ -47,9 +47,9 @@ class BatchRequest extends Request implements IteratorAggregate, ArrayAccess * @param Request[] $requests */ public function __construct( - Application $application = null, + ?Application $application = null, array $requests = [], - AccessToken|string $accessToken = null, + AccessToken|string|null $accessToken = null, ?string $graphVersion = null, ) { parent::__construct($application, $accessToken, 'POST', '', [], null, $graphVersion); @@ -221,15 +221,16 @@ public function validateBatchRequestCount(): void /** * Converts a Request entity into an array that is batch-friendly. * - * @param Request $request the request entity to convert - * @param mixed[]|string $options Array of batch request options e.g. 'name', 'omit_response_on_success'. If a string is given, it is the value of the 'name' option. - * @param string|null $attachedFiles names of files associated with the request + * @param Request $request the request entity to convert + * @param string|mixed[]|null $options Array of batch request options e.g. 'name', 'omit_response_on_success'. If a string is given, it is the value of the 'name' option. + * @param string|null $attachedFiles names of files associated with the request + * * @return mixed[] */ public function requestEntityToBatchArray( Request $request, - array|string $options = null, - string $attachedFiles = null, + array|string|null $options = null, + ?string $attachedFiles = null, ): array { if ($options === null) { diff --git a/src/Client.php b/src/Client.php index dde6f2d..ae3e3c7 100755 --- a/src/Client.php +++ b/src/Client.php @@ -60,7 +60,7 @@ class Client * Instantiates a new Client object. */ public function __construct( - ClientInterface $httpClient = null, + ?ClientInterface $httpClient = null, protected bool $enableBetaMode = false, ) { $this->httpClient = $httpClient ?? Psr18ClientDiscovery::find(); diff --git a/src/Exception/ResponseException.php b/src/Exception/ResponseException.php index bd85e9c..8f8810b 100755 --- a/src/Exception/ResponseException.php +++ b/src/Exception/ResponseException.php @@ -32,7 +32,7 @@ class ResponseException extends SDKException public function __construct( protected Response $response, - SDKException $sdkException = null, + ?SDKException $sdkException = null, ) { $this->responseData = $response->getDecodedBody(); diff --git a/src/Facebook.php b/src/Facebook.php index b750256..31a5ddc 100755 --- a/src/Facebook.php +++ b/src/Facebook.php @@ -289,9 +289,9 @@ public function getPageTabHelper(): PageTabHelper */ public function get( string $endpoint, - AccessToken|string $accessToken = null, - string $eTag = null, - string $graphVersion = null, + AccessToken|string|null $accessToken = null, + ?string $eTag = null, + ?string $graphVersion = null, ): Response { return $this->sendRequest('GET', $endpoint, [], $accessToken, $eTag, $graphVersion); @@ -306,9 +306,9 @@ public function get( public function post( string $endpoint, array $params = [], - AccessToken|string $accessToken = null, - string $eTag = null, - string $graphVersion = null, + AccessToken|string|null $accessToken = null, + ?string $eTag = null, + ?string $graphVersion = null, ): Response { return $this->sendRequest('POST', $endpoint, $params, $accessToken, $eTag, $graphVersion); @@ -323,9 +323,9 @@ public function post( public function delete( string $endpoint, array $params = [], - AccessToken|string $accessToken = null, - string $eTag = null, - string $graphVersion = null, + AccessToken|string|null $accessToken = null, + ?string $eTag = null, + ?string $graphVersion = null, ): Response { return $this->sendRequest('DELETE', $endpoint, $params, $accessToken, $eTag, $graphVersion); @@ -392,9 +392,9 @@ public function sendRequest( string $method, string $endpoint, array $params = [], - AccessToken|string $accessToken = null, - string $eTag = null, - string $graphVersion = null, + AccessToken|string|null $accessToken = null, + ?string $eTag = null, + ?string $graphVersion = null, ): Response { $accessToken ??= $this->defaultAccessToken; @@ -413,8 +413,8 @@ public function sendRequest( */ public function sendBatchRequest( array $requests, - AccessToken|string $accessToken = null, - string $graphVersion = null, + AccessToken|string|null $accessToken = null, + ?string $graphVersion = null, ): BatchResponse { $accessToken ??= $this->defaultAccessToken; @@ -433,7 +433,7 @@ public function sendBatchRequest( */ public function newBatchRequest( AccessToken|string|null $accessToken = null, - string $graphVersion = null, + ?string $graphVersion = null, ): BatchRequest { $accessToken ??= $this->defaultAccessToken; @@ -454,9 +454,9 @@ public function request( string $method, string $endpoint, array $params = [], - AccessToken|string $accessToken = null, - string $eTag = null, - string $graphVersion = null, + AccessToken|string|null $accessToken = null, + ?string $eTag = null, + ?string $graphVersion = null, ): Request { $accessToken ??= $this->defaultAccessToken; @@ -507,7 +507,7 @@ public function uploadVideo( array $metadata = [], string|AccessToken|null $accessToken = null, int $maxTransferTries = 5, - string $graphVersion = null, + ?string $graphVersion = null, ): array { $accessToken ??= $this->defaultAccessToken; diff --git a/src/GraphNode/GraphNodeFactory.php b/src/GraphNode/GraphNodeFactory.php index 648eaf3..beefe00 100755 --- a/src/GraphNode/GraphNodeFactory.php +++ b/src/GraphNode/GraphNodeFactory.php @@ -80,7 +80,7 @@ public function __construct( * @throws SDKException */ public function makeGraphNode( - string $subclassName = null, + ?string $subclassName = null, ): GraphNode { $this->validateResponseCastableAsGraphNode(); @@ -97,7 +97,7 @@ public function makeGraphNode( * * @throws SDKException */ - public function makeGraphEdge(string $subclassName = null, bool $auto_prefix = true): GraphEdge + public function makeGraphEdge(?string $subclassName = null, bool $auto_prefix = true): GraphEdge { $this->validateResponseCastableAsGraphEdge(); @@ -141,7 +141,7 @@ public function validateResponseCastableAsGraphEdge(): void * * @throws SDKException */ - public function safelyMakeGraphNode(array $data, string $subclassName = null): GraphNode + public function safelyMakeGraphNode(array $data, ?string $subclassName = null): GraphNode { $subclassName ??= static::BaseGraphNodeClass; static::validateSubclass($subclassName); @@ -174,18 +174,18 @@ public function safelyMakeGraphNode(array $data, string $subclassName = null): G /** * Takes an array of values and determines how to cast each node. * - * @param array $data the array of data to iterate over - * @param string|null $subclassName the subclass to cast this collection to - * @param string|int $parentKey the key of this data (Graph edge) - * @param string|null $parentNodeId the parent Graph node ID + * @param array $data the array of data to iterate over + * @param string|null $subclassName the subclass to cast this collection to + * @param string|int|null $parentKey the key of this data (Graph edge) + * @param string|null $parentNodeId the parent Graph node ID * * @throws SDKException */ public function castAsGraphNodeOrGraphEdge( array $data, - string $subclassName = null, - string|int $parentKey = null, - string $parentNodeId = null, + ?string $subclassName = null, + string|int|null $parentKey = null, + ?string $parentNodeId = null, ): GraphEdge|GraphNode { if (isset($data['data'])) { diff --git a/src/Helper/RedirectLoginHelper.php b/src/Helper/RedirectLoginHelper.php index eabee0a..68291ef 100755 --- a/src/Helper/RedirectLoginHelper.php +++ b/src/Helper/RedirectLoginHelper.php @@ -50,8 +50,8 @@ class RedirectLoginHelper */ public function __construct( protected OAuth2Client $oAuth2Client, - PersistentDataInterface $persistentData = null, - UrlDetectionInterface $urlDetection = null, + ?PersistentDataInterface $persistentData = null, + ?UrlDetectionInterface $urlDetection = null, ) { $this->persistentDataHandler = $persistentData ?? new SessionPersistentDataHandler; $this->urlDetectionHandler = $urlDetection ?? new UrlDetectionHandler; @@ -177,7 +177,7 @@ public function getReAuthenticationUrl(string $redirectUrl, array $scope = [], s * * @throws SDKException */ - public function getAccessToken(string $redirectUrl = null): ?AccessToken + public function getAccessToken(?string $redirectUrl = null): ?AccessToken { $code = $this->getCode(); if ($code === null) { diff --git a/src/Helper/SignedRequestFromInputHelper.php b/src/Helper/SignedRequestFromInputHelper.php index 98692da..4e2d01f 100755 --- a/src/Helper/SignedRequestFromInputHelper.php +++ b/src/Helper/SignedRequestFromInputHelper.php @@ -57,7 +57,7 @@ public function __construct( /** * Instantiates a new SignedRequest entity. */ - public function instantiateSignedRequest(string $rawSignedRequest = null): void + public function instantiateSignedRequest(?string $rawSignedRequest = null): void { $rawSignedRequest ??= $this->getRawSignedRequest(); diff --git a/src/Http/RequestBodyMultipart.php b/src/Http/RequestBodyMultipart.php index c043ec9..53a9d2a 100755 --- a/src/Http/RequestBodyMultipart.php +++ b/src/Http/RequestBodyMultipart.php @@ -47,7 +47,7 @@ class RequestBodyMultipart implements RequestBodyInterface public function __construct( private readonly array $params = [], private readonly array $files = [], - string $boundary = null, + ?string $boundary = null, ) { $this->boundary = $boundary ?? uniqid(); } diff --git a/src/Request.php b/src/Request.php index 4259860..6800adf 100755 --- a/src/Request.php +++ b/src/Request.php @@ -68,12 +68,12 @@ class Request * @throws SDKException */ public function __construct( - Application $application = null, - AccessToken|string $accessToken = null, - string $method = null, - string $endpoint = null, + ?Application $application = null, + AccessToken|string|null $accessToken = null, + ?string $method = null, + ?string $endpoint = null, array $params = [], - string $eTag = null, + ?string $eTag = null, protected ?string $graphVersion = null, ) { $this->setApp($application); @@ -135,7 +135,7 @@ public function getAccessTokenEntity(): ?AccessToken /** * Set the Application entity used for this request. */ - public function setApp(Application $application = null): void + public function setApp(?Application $application = null): void { $this->app = $application; } diff --git a/src/Response.php b/src/Response.php index 013240f..428d94d 100755 --- a/src/Response.php +++ b/src/Response.php @@ -222,7 +222,7 @@ public function decodeBody(): void * * @throws SDKException */ - public function getGraphNode(string $subclassName = null): GraphNode + public function getGraphNode(?string $subclassName = null): GraphNode { $graphNodeFactory = new GraphNodeFactory($this); @@ -238,7 +238,7 @@ public function getGraphNode(string $subclassName = null): GraphNode * * @throws SDKException */ - public function getGraphEdge(string $subclassName = null, bool $auto_prefix = true): GraphEdge + public function getGraphEdge(?string $subclassName = null, bool $auto_prefix = true): GraphEdge { $graphNodeFactory = new GraphNodeFactory($this); diff --git a/src/SignedRequest.php b/src/SignedRequest.php index 59b28d8..529ed1b 100755 --- a/src/SignedRequest.php +++ b/src/SignedRequest.php @@ -47,7 +47,7 @@ class SignedRequest */ public function __construct( protected Application $application, - string $rawSignedRequest = null, + ?string $rawSignedRequest = null, ) { if ($rawSignedRequest === null) { return;