Skip to content

Commit 6a514ac

Browse files
committed
Fix types
1 parent af84288 commit 6a514ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Identity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ class Identity implements IdentityInterface
4444
/**
4545
* Identity data
4646
*
47-
* @var \ArrayAccess|array
47+
* @var \ArrayAccess<string, mixed>|array<string, mixed>
4848
*/
4949
protected ArrayAccess|array $data;
5050

5151
/**
5252
* Constructor
5353
*
54-
* @param \ArrayAccess|array $data Identity data
54+
* @param \ArrayAccess<string, mixed>|array<string, mixed> $data Identity data
5555
* @param array<string, mixed> $config Config options
5656
*/
5757
public function __construct(ArrayAccess|array $data, array $config = [])

src/IdentityInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/**
2222
* Identity interface
2323
*
24-
* @template-extends \ArrayAccess<array-key, \Authentication\IdentityInterface>
24+
* @template-extends \ArrayAccess<string, mixed>
2525
*/
2626
interface IdentityInterface extends ArrayAccess
2727
{
@@ -35,7 +35,7 @@ public function getIdentifier(): array|string|int|null;
3535
/**
3636
* Gets the original data object.
3737
*
38-
* @return \ArrayAccess|array
38+
* @return \ArrayAccess<string, mixed>|array<string, mixed>
3939
*/
4040
public function getOriginalData(): ArrayAccess|array;
4141
}

0 commit comments

Comments
 (0)