Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit 949eb61

Browse files
authored
Merge pull request #367 from mesilov/306-beta-1
bitrix24-php-sdk beta 1 build
2 parents 2794e3b + bad9929 commit 949eb61

File tree

10 files changed

+16
-13
lines changed

10 files changed

+16
-13
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# bitrix24-php-sdk change log
22

3-
## 2.0-beta.1 — 25.03.2023
3+
## 2.0-beta.1 — 18.02.2024
44

55
### Added
66

7-
* ❗️add php 8.3 support, drop 8.1 and 8.0 support
7+
* ❗️add php 8.3, 8.2 support, drop 8.1 and 8.0 support
88
* add `Symfony\Component\Uid\Uuid` requirements
99
* add contracts for bitrix24 applications based on bitrix24-php-sdk - `Bitrix24\SDK\Application\Contracts`, now
1010
added `Bitrix24Account`

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ default:
33
@egrep -e '^\S+' ./Makefile | grep -v default | sed -r 's/://' | sed -r 's/^/ - /'
44

55
phpstan:
6-
vendor/bin/phpstan analyse
6+
vendor/bin/phpstan analyse
7+
8+
test-unit:
9+
vendor/bin/phpunit --testsuite unit_tests

src/Infrastructure/HttpClient/RequestId/DefaultRequestIdGenerator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
class DefaultRequestIdGenerator implements RequestIdGeneratorInterface
1010
{
11-
private const string DEFAULT_REQUEST_ID_HEADER_FIELD_NAME = 'X-Request-ID';
12-
private const string DEFAULT_QUERY_STRING_PARAMETER_NAME = 'bx24_request_id';
13-
private const array KEY_NAME_VARIANTS = [
11+
private const DEFAULT_REQUEST_ID_HEADER_FIELD_NAME = 'X-Request-ID';
12+
private const DEFAULT_QUERY_STRING_PARAMETER_NAME = 'bx24_request_id';
13+
private const KEY_NAME_VARIANTS = [
1414
'REQUEST_ID',
1515
'HTTP_X_REQUEST_ID',
1616
'UNIQUE_ID'

src/Services/CRM/Common/Result/AbstractCrmItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
class AbstractCrmItem extends AbstractItem
1919
{
20-
private const string CRM_USERFIELD_PREFIX = 'UF_CRM_';
20+
private const CRM_USERFIELD_PREFIX = 'UF_CRM_';
2121

2222
/**
2323
* @var Currency

src/Services/Catalog/Common/Result/AbstractCatalogItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
abstract class AbstractCatalogItem extends AbstractItem
1515
{
16-
private const string CRM_USERFIELD_PREFIX = 'UF_CRM_';
16+
private const CRM_USERFIELD_PREFIX = 'UF_CRM_';
1717

1818
/**
1919
* @var Currency

tests/Unit/Application/ApplicationStatusTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testInitFromString(): void
4949
/**
5050
* @return \Generator
5151
*/
52-
public function statusDataProvider(): Generator
52+
public static function statusDataProvider(): Generator
5353
{
5454
yield 'free' => [
5555
'F',

tests/Unit/Core/Credentials/ApplicationProfileTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function testFromArray(array $arr, ?string $expectedException): void
3131
$this->assertEquals($prof->getClientSecret(), $arr['BITRIX24_PHP_SDK_APPLICATION_CLIENT_SECRET']);
3232
}
3333

34-
public function arrayDataProvider(): Generator
34+
public static function arrayDataProvider(): Generator
3535
{
3636
yield 'valid' => [
3737
[

tests/Unit/Core/Credentials/CredentialsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function testDomainUrlWithProtocol(): void
7070
* @throws \Bitrix24\SDK\Core\Exceptions\InvalidArgumentException
7171
* @throws \Bitrix24\SDK\Core\Exceptions\UnknownScopeCodeException
7272
*/
73-
public function credentialsDataProviderWithDomainUrlVariants(): Generator
73+
public static function credentialsDataProviderWithDomainUrlVariants(): Generator
7474
{
7575
yield 'with webhook walid domain url' => [
7676
Credentials::createFromWebhook(new WebhookUrl('https://bitrix24-php-sdk-playground.bitrix24.ru/rest/1/valid-webhook/')),

tests/Unit/Core/Response/DTO/TimeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function testInitFromResponseData(array $result): void
3636
/**
3737
* @return \Generator
3838
*/
39-
public function timingsDataProvider(): Generator
39+
public static function timingsDataProvider(): Generator
4040
{
4141
yield 'without operating reset at' => [
4242
[

tests/Unit/Infrastructure/HttpClient/RequestId/DefaultRequestIdGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function testExistsRequestId($requestIdKey, $requestId): void
2626
unset($_SERVER[$requestIdKey]);
2727
}
2828

29-
public function requestIdKeyDataProvider(): Generator
29+
public static function requestIdKeyDataProvider(): Generator
3030
{
3131
yield 'REQUEST_ID' => [
3232
'REQUEST_ID',

0 commit comments

Comments
 (0)