diff --git a/CHANGELOG.md b/CHANGELOG.md index b754e9a4..438bd3cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -86,13 +86,16 @@ - `get` get localizations - `fields` get localization fields - `delete` delete currency, with batch calls support +- Developer experience: added make command `lint-all` for run all code linters step by step, [see details](https://github.com/bitrix24/b24phpsdk/issues/183) ### Fixed - Fixed error in arguments in service for method `placement.bind`, [see details](https://github.com/bitrix24/b24phpsdk/issues/151) -- Fixed errors in `task.elapseditem.*` call in ApiClient [see details](https://github.com/bitrix24/b24phpsdk/issues/180) +- Fixed errors in `task.elapseditem.*` call in ApiClient [see details](https://github.com/bitrix24/b24phpsdk/issues/180) + ### Changed +- Changed B24-PHP-SDK useragent: added prefix `vendor`, [see details](https://github.com/bitrix24/b24phpsdk/issues/183) - ❗**️️BC** Changed contract `Bitrix24\SDK\Application\Contracts\Bitrix24Accounts\Entity\Bitrix24AccountInterface`, this change needs to process corner cases when [installed application with UI or without UI](https://github.com/bitrix24/b24phpsdk/issues/150): - changed method `public function applicationInstalled(?string $applicationToken): void` application token now is nullable diff --git a/Makefile b/Makefile index 6538bc3f..4c03d6bd 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,7 @@ help: @echo "ngrok-up - start ngrok" @echo "ngrok-down - stop ngrok" @echo "" + @echo "lint-all - lint codebase with all linters step by step" @echo "lint-allowed-licenses - lint dependencies for valid licenses" @echo "lint-cs-fixer - lint source code with php-cs-fixer" @echo "lint-cs-fixer-fix - fix source code with php-cs-fixer" @@ -133,6 +134,9 @@ lint-rector: lint-rector-fix: docker-compose run --rm php-cli vendor/bin/rector process +.PHONY: lint-all +lint-all: lint-allowed-licenses lint-cs-fixer lint-phpstan lint-rector + # unit tests .PHONY: test-unit test-unit: diff --git a/src/Core/ApiClient.php b/src/Core/ApiClient.php index f6a7873e..9030a544 100644 --- a/src/Core/ApiClient.php +++ b/src/Core/ApiClient.php @@ -40,7 +40,7 @@ class ApiClient implements ApiClientInterface */ protected const SDK_VERSION = '1.3.0'; - protected const SDK_USER_AGENT = 'b24-php-sdk'; + protected const SDK_USER_AGENT = 'b24-php-sdk-vendor'; /** * ApiClient constructor.