Skip to content

Commit a185a33

Browse files
authored
add type for $authenticators and $defaultAuthenticator
1 parent ed7b7e5 commit a185a33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/references/authentication/authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You can see the [Authenticator List](../../getting_started/authenticators.md).
1212
The available authenticators are defined in `Config\Auth`:
1313

1414
```php
15-
public $authenticators = [
15+
public array $authenticators = [
1616
// alias => classname
1717
'session' => Session::class,
1818
'tokens' => AccessTokens::class,
@@ -24,7 +24,7 @@ public $authenticators = [
2424
The default authenticator is also defined in the configuration file, and uses the alias given above:
2525

2626
```php
27-
public $defaultAuthenticator = 'session';
27+
public string $defaultAuthenticator = 'session';
2828
```
2929

3030
## Auth Helper

0 commit comments

Comments
 (0)