From 595a6b4dd7be4b8b0b4d988989d9e41f24a56ba5 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Wed, 12 Oct 2022 16:36:30 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 60c511d64..1d5b81999 100644 --- a/README.md +++ b/README.md @@ -80,3 +80,8 @@ see: [PSR-16 Simple Cache](https://www.php-fig.org/psr/psr-16/) 4. Commit your changes (`git commit -am 'Add some feature'`) 5. Push to the branch (`git push origin my-new-feature`) 6. Create a new Pull Request + +## Third party applications +If you use this SDK, feel free to open a PR to add your application in this list. + +## Authors From 7d8033a541a03c9c560cab651c35c0af9903eee3 Mon Sep 17 00:00:00 2001 From: khalyomede Date: Wed, 15 Feb 2023 22:00:14 +0100 Subject: [PATCH 2/3] #45 add support for psr/log ^2.0 --- composer.json | 9 +++++++-- src/Collection.php | 13 ++++++------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 1d1cfedf9..187c4c356 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "ext-json": "*", "ext-curl": "*", "guzzlehttp/guzzle": "^6.3|^7.0", - "psr/log": "^1.0", + "psr/log": "^2.0", "psr/simple-cache": "^1.0" }, "autoload": { @@ -36,11 +36,16 @@ }, "require-dev": { "ext-gd": "*", - "monolog/monolog": "^1.23", + "monolog/monolog": "^2.0", "symfony/cache": "^4.3", "phpunit/phpunit": "^8.5|^9.5", "phpstan/phpstan": "^0.12.99", "phpstan/phpstan-phpunit": "^0.12.22", "friendsofphp/php-cs-fixer": "^3.1" + }, + "scripts": { + "test": "phpunit", + "analyse": "phpstan analyse", + "lint": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --dry-run" } } diff --git a/src/Collection.php b/src/Collection.php index 1bdcd14d3..f31334f9d 100644 --- a/src/Collection.php +++ b/src/Collection.php @@ -103,7 +103,7 @@ public function searchCount(): int /** * @inheritDoc */ - public function rewind() + public function rewind(): void { reset($this->listDocuments); } @@ -111,7 +111,7 @@ public function rewind() * @inheritDoc * @return Document|false */ - public function current() + public function current(): mixed { return current($this->listDocuments); } @@ -119,22 +119,21 @@ public function current() * @inheritDoc * @return int|null */ - public function key() + public function key(): mixed { return key($this->listDocuments); } /** * @inheritDoc - * @return Document|false */ - public function next() + public function next(): void { - return next($this->listDocuments); + next($this->listDocuments); } /** * @inheritDoc */ - public function valid() + public function valid(): bool { $key = key($this->listDocuments); return ($key !== null && $key !== false); From 96c219dede423b9c4a1fa475c79c2ee100c1ac3e Mon Sep 17 00:00:00 2001 From: khalyomede Date: Wed, 15 Feb 2023 22:02:07 +0100 Subject: [PATCH 3/3] #45 remove scripts --- composer.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/composer.json b/composer.json index 187c4c356..e569cb67c 100644 --- a/composer.json +++ b/composer.json @@ -42,10 +42,5 @@ "phpstan/phpstan": "^0.12.99", "phpstan/phpstan-phpunit": "^0.12.22", "friendsofphp/php-cs-fixer": "^3.1" - }, - "scripts": { - "test": "phpunit", - "analyse": "phpstan analyse", - "lint": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --dry-run" } }