Skip to content

Commit 76e8592

Browse files
authored
Merge pull request #732 from cakephp/3.x-array-doc
Fix up array docblocks.
2 parents 72f9462 + 1e3d3ed commit 76e8592

13 files changed

+17
-17
lines changed

src/AuthenticationService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class AuthenticationService implements AuthenticationServiceInterface, Impersona
110110
/**
111111
* Constructor
112112
*
113-
* @param array $config Configuration options.
113+
* @param array<string, mixed> $config Configuration options.
114114
*/
115115
public function __construct(array $config = [])
116116
{
@@ -151,7 +151,7 @@ public function authenticators(): AuthenticatorCollection
151151
* Loads an authenticator.
152152
*
153153
* @param string $name Name or class name.
154-
* @param array $config Authenticator configuration.
154+
* @param array<string, mixed> $config Authenticator configuration.
155155
* @return \Authentication\Authenticator\AuthenticatorInterface
156156
*/
157157
public function loadAuthenticator(string $name, array $config = []): AuthenticatorInterface
@@ -163,7 +163,7 @@ public function loadAuthenticator(string $name, array $config = []): Authenticat
163163
* Loads an identifier.
164164
*
165165
* @param string $name Name or class name.
166-
* @param array $config Identifier configuration.
166+
* @param array<string, mixed> $config Identifier configuration.
167167
* @return \Authentication\Identifier\IdentifierInterface Identifier instance
168168
* @deprecated 3.3.0: loadIdentifier() usage is deprecated. Directly pass Identifier to Authenticator.
169169
*/

src/AuthenticationServiceInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ interface AuthenticationServiceInterface extends PersistenceInterface
2828
* Loads an authenticator.
2929
*
3030
* @param string $name Name or class name.
31-
* @param array $config Authenticator configuration.
31+
* @param array<string, mixed> $config Authenticator configuration.
3232
* @return \Authentication\Authenticator\AuthenticatorInterface
3333
*/
3434
public function loadAuthenticator(string $name, array $config = []): AuthenticatorInterface;
@@ -37,7 +37,7 @@ public function loadAuthenticator(string $name, array $config = []): Authenticat
3737
* Loads an identifier.
3838
*
3939
* @param string $name Name or class name.
40-
* @param array $config Identifier configuration.
40+
* @param array<string, mixed> $config Identifier configuration.
4141
* @return \Authentication\Identifier\IdentifierInterface
4242
* @deprecated 3.3.0: loadIdentifier() usage is deprecated. Directly pass Identifier to Authenticator.
4343
*/

src/Authenticator/AbstractAuthenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ abstract class AbstractAuthenticator implements AuthenticatorInterface
4949
* Constructor
5050
*
5151
* @param \Authentication\Identifier\IdentifierInterface $identifier Identifier or identifiers collection.
52-
* @param array $config Configuration settings.
52+
* @param array<string, mixed> $config Configuration settings.
5353
*/
5454
public function __construct(IdentifierInterface $identifier, array $config = [])
5555
{

src/Authenticator/AuthenticatorCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class AuthenticatorCollection extends AbstractCollection
3838
* Constructor.
3939
*
4040
* @param \Authentication\Identifier\IdentifierCollection $identifiers Identifiers collection.
41-
* @param array $config Config array.
41+
* @param array<string, mixed> $config Config array.
4242
*/
4343
public function __construct(IdentifierCollection $identifiers, array $config = [])
4444
{
@@ -58,7 +58,7 @@ public function __construct(IdentifierCollection $identifiers, array $config = [
5858
*
5959
* @param \Authentication\Authenticator\AuthenticatorInterface|class-string<\Authentication\Authenticator\AuthenticatorInterface> $class Authenticator class.
6060
* @param string $alias Authenticator alias.
61-
* @param array $config Config array.
61+
* @param array<string, mixed> $config Config array.
6262
* @return \Authentication\Authenticator\AuthenticatorInterface
6363
* @throws \RuntimeException
6464
*/

src/Authenticator/HttpDigestAuthenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class HttpDigestAuthenticator extends HttpBasicAuthenticator
5656
* Defaults to `md5($config['realm'])`
5757
*
5858
* @param \Authentication\Identifier\IdentifierInterface $identifier Identifier instance.
59-
* @param array $config Configuration settings.
59+
* @param array<string, mixed> $config Configuration settings.
6060
*/
6161
public function __construct(IdentifierInterface $identifier, array $config = [])
6262
{

src/Controller/Component/AuthenticationComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class AuthenticationComponent extends Component implements EventDispatcherInterf
8383
/**
8484
* Initialize component.
8585
*
86-
* @param array $config The config data.
86+
* @param array<string, mixed> $config The config data.
8787
* @return void
8888
*/
8989
public function initialize(array $config): void

src/Identifier/AbstractIdentifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ abstract class AbstractIdentifier implements IdentifierInterface
4343
/**
4444
* Constructor
4545
*
46-
* @param array $config Configuration
46+
* @param array<string, mixed> $config Configuration
4747
*/
4848
public function __construct(array $config = [])
4949
{

src/Identifier/IdentifierCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function identify(array $credentials): ArrayAccess|array|null
6969
*
7070
* @param \Authentication\Identifier\IdentifierInterface|class-string<\Authentication\Identifier\IdentifierInterface> $class Identifier class.
7171
* @param string $alias Identifier alias.
72-
* @param array $config Config array.
72+
* @param array<string, mixed> $config Config array.
7373
* @return \Authentication\Identifier\IdentifierInterface
7474
* @throws \RuntimeException
7575
*/

src/Identifier/Resolver/OrmResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class OrmResolver implements ResolverInterface
4343
/**
4444
* Constructor.
4545
*
46-
* @param array $config Config array.
46+
* @param array<string, mixed> $config Config array.
4747
*/
4848
public function __construct(array $config = [])
4949
{

src/Identity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Identity implements IdentityInterface
5151
* Constructor
5252
*
5353
* @param \ArrayAccess|array $data Identity data
54-
* @param array $config Config options
54+
* @param array<string, mixed> $config Config options
5555
*/
5656
public function __construct(ArrayAccess|array $data, array $config = [])
5757
{

0 commit comments

Comments
 (0)