Skip to content

Commit ee09498

Browse files
Add types to public and protected properties
1 parent 280caaa commit ee09498

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Role/RoleHierarchy.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@
1818
*/
1919
class RoleHierarchy implements RoleHierarchyInterface
2020
{
21-
private array $hierarchy;
2221
/** @var array<string, list<string>> */
23-
protected $map;
22+
protected array $map;
23+
24+
private array $hierarchy;
2425

2526
/**
2627
* @param array<string, list<string>> $hierarchy

Validator/Constraints/UserPassword.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ class UserPassword extends Constraint
2222
self::INVALID_PASSWORD_ERROR => 'INVALID_PASSWORD_ERROR',
2323
];
2424

25-
public $message = 'This value should be the user\'s current password.';
26-
public $service = 'security.validator.user_password';
25+
public string $message = 'This value should be the user\'s current password.';
26+
public string $service = 'security.validator.user_password';
2727

2828
public function __construct(array $options = null, string $message = null, string $service = null, array $groups = null, mixed $payload = null)
2929
{

0 commit comments

Comments
 (0)