Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/Core/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down