From 5f51ef45a2e007938005f59bedeb64aab59a9acd Mon Sep 17 00:00:00 2001 From: Sysix Date: Sat, 25 Nov 2023 23:20:36 +0100 Subject: [PATCH] update UPGRADE.md --- .gitattributes | 3 ++- README.md | 2 +- UPDATE.md => UPGRADE.md | 12 +++++++++++- composer.json | 3 ++- 4 files changed, 16 insertions(+), 4 deletions(-) rename UPDATE.md => UPGRADE.md (68%) diff --git a/.gitattributes b/.gitattributes index 6c17557..d684144 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,4 +2,5 @@ /tests export-ignore /.gitattributes export-ignore /.gitignore export-ignore -/phpunit.xml \ No newline at end of file +/phpunit.xml export-ignore +/phpstan.neon export-ignore \ No newline at end of file diff --git a/README.md b/README.md index 3ebfcb8..7a2c1f1 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ## Requirements -PHP: >= 7.4 +PHP: >= 8.1 Extensions: [Composer](https://getcomposer.org/), [PHP-JSON](https://www.php.net/manual/en/book.json.php) ## Install diff --git a/UPDATE.md b/UPGRADE.md similarity index 68% rename from UPDATE.md rename to UPGRADE.md index c88fb47..2a0b3d0 100644 --- a/UPDATE.md +++ b/UPGRADE.md @@ -9,6 +9,12 @@ All Classses with started with `\Clicksports\Lexoffice` are now under `\Sysix\Le In Version `0.x` all Clients had a separate folder/namespace. Now they will all use the namespace `\Sysix\Lexoffice\Clients` +| Old Class | New Class | +| --- | --- | +| `new \Clicksports\Lexoffice\Country\Client()` | `new \Sysix\Lexoffice\Clients\Country()` | +| `new \Clicksports\Lexoffice\Voucher\Client()` | `new \Sysix\Lexoffice\Clients\Voucher()` | +| ... | ... | + ## Cache removed For settings a Cache Interface check out [guzzle-cache-middleware](https://github.com/Kevinrob/guzzle-cache-middleware). @@ -29,4 +35,8 @@ At the moment, it doesn't look like the endpoint will be added soon. So we will ## Exceptions Removed - `\Sysix\Lexoffice\Exception\CacheException` -- `\Sysix\Lexoffice\Exception\BadMethodException` \ No newline at end of file +- `\Sysix\Lexoffice\Exception\BadMethodException` + +## Strict Typed + +Every Method is has now strict Parameters and strict Return Types. If you extend some classes, you probably need to update them too. \ No newline at end of file diff --git a/composer.json b/composer.json index 6d4cce8..74aa385 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,8 @@ "phpunit/phpunit": "^10.4" }, "suggest": { - "kevinrob/guzzle-cache-middleware": "*" + "kevinrob/guzzle-cache-middleware": "*", + "spatie/guzzle-rate-limiter-middleware": "*" }, "autoload": { "psr-4": {