Skip to content

Commit

Permalink
refactor(php): improve type hinting and argument typing of AppConfig …
Browse files Browse the repository at this point in the history
…and it's descendants
  • Loading branch information
JoelAlphonso committed Sep 16, 2022
1 parent 599ba48 commit 6e38d70
Show file tree
Hide file tree
Showing 17 changed files with 92 additions and 156 deletions.
2 changes: 1 addition & 1 deletion packages/admin/src/Charcoal/Admin/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Config extends AbstractConfig
*
* @return array
*/
public function defaults()
public function defaults(): array
{
$baseDir = rtrim(realpath(__DIR__ . '/../../../'), '/');
$confDir = $baseDir . '/config';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AuthTokenMetadata extends BaseAuthTokenMetadata
/**
* @return array
*/
public function defaults()
public function defaults(): array
{
$parentDefaults = parent::defaults();

Expand Down
Loading

0 comments on commit 6e38d70

Please sign in to comment.