Skip to content

Commit 19e1cac

Browse files
authored
Merge pull request #2760 from tarlepp/feat/const-types
Chore(types) - Added missing types to const definitions
2 parents a970c9b + 03d48f9 commit 19e1cac

35 files changed

+95
-95
lines changed

src/Command/ApiKey/ChangeTokenCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ChangeTokenCommand extends Command
2929
{
3030
use SymfonyStyleTrait;
3131

32-
final public const NAME = 'api-key:change-token';
32+
final public const string NAME = 'api-key:change-token';
3333

3434
public function __construct(
3535
private readonly ApiKeyResource $apiKeyResource,

src/Command/ApiKey/CreateApiKeyCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class CreateApiKeyCommand extends Command
3838
use ApiKeyUserManagementHelperTrait;
3939
use SymfonyStyleTrait;
4040

41-
final public const NAME = 'api-key:create';
41+
final public const string NAME = 'api-key:create';
4242

4343
/**
4444
* @var array<int, array<string, string>>

src/Command/ApiKey/EditApiKeyCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class EditApiKeyCommand extends Command
3232
{
3333
use SymfonyStyleTrait;
3434

35-
final public const NAME = 'api-key:edit';
35+
final public const string NAME = 'api-key:edit';
3636

3737
public function __construct(
3838
private readonly ApiKeyResource $apiKeyResource,

src/Command/ApiKey/ListApiKeysCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
)]
3434
class ListApiKeysCommand extends Command
3535
{
36-
final public const NAME = 'api-key:list';
36+
final public const string NAME = 'api-key:list';
3737

3838
public function __construct(
3939
private readonly ApiKeyResource $apiKeyResource,

src/Command/ApiKey/RemoveApiKeyCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class RemoveApiKeyCommand extends Command
2929
{
3030
use SymfonyStyleTrait;
3131

32-
final public const NAME = 'api-key:remove';
32+
final public const string NAME = 'api-key:remove';
3333

3434
public function __construct(
3535
private readonly ApiKeyResource $apiKeyResource,

src/Command/User/CreateRolesCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CreateRolesCommand extends Command
3434
{
3535
use SymfonyStyleTrait;
3636

37-
final public const NAME = 'user:create-roles';
37+
final public const string NAME = 'user:create-roles';
3838

3939
public function __construct(
4040
private readonly EntityManagerInterface $entityManager,

src/Command/User/CreateUserCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ class CreateUserCommand extends Command
3838
use ApiKeyUserManagementHelperTrait;
3939
use SymfonyStyleTrait;
4040

41-
final public const NAME = 'user:create';
41+
final public const string NAME = 'user:create';
4242

43-
private const PARAMETER_NAME = 'name';
44-
private const PARAMETER_DESCRIPTION = 'description';
43+
private const string PARAMETER_NAME = 'name';
44+
private const string PARAMETER_DESCRIPTION = 'description';
4545

4646
/**
4747
* @var array<int, array<string, string>>

src/Command/User/CreateUserGroupCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class CreateUserGroupCommand extends Command
3737
use GetApplicationTrait;
3838
use SymfonyStyleTrait;
3939

40-
final public const NAME = 'user:create-group';
40+
final public const string NAME = 'user:create-group';
4141

4242
/**
4343
* @var array<int, array<string, string>>

src/Command/User/EditUserCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class EditUserCommand extends Command
3232
{
3333
use SymfonyStyleTrait;
3434

35-
final public const NAME = 'user:edit';
35+
final public const string NAME = 'user:edit';
3636

3737
public function __construct(
3838
private readonly UserResource $userResource,

src/Command/User/EditUserGroupCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class EditUserGroupCommand extends Command
3232
{
3333
use SymfonyStyleTrait;
3434

35-
final public const NAME = 'user:edit-group';
35+
final public const string NAME = 'user:edit-group';
3636

3737
public function __construct(
3838
private readonly UserGroupResource $userGroupResource,

0 commit comments

Comments
 (0)