Skip to content

Commit

Permalink
test: add types and PHPDoc array types
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Apr 9, 2024
1 parent 38ffdde commit 522cd74
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/_support/Config/Registrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class Registrar
/**
* DB config array for testing purposes.
*
* @var array
* @var array<string, array<string, array<string, bool|int|string>|bool|int|string>>
*/
protected static $dbConfig = [
protected static array $dbConfig = [
'MySQLi' => [
'DSN' => '',
'hostname' => '127.0.0.1',
Expand Down Expand Up @@ -126,9 +126,9 @@ class Registrar
/**
* Override database config
*
* @return array
* @return array<string, array<string, bool|int|string>|bool|int|string>
*/
public static function Database()
public static function Database(): array
{
$config = [];

Expand All @@ -146,9 +146,9 @@ public static function Database()
*
* @see PublisherRestrictionsTest::testRegistrarsNotAllowed()
*
* @return array
* @return array<string, array<string, string>>
*/
public static function Publisher()
public static function Publisher(): array
{
return [
'restrictions' => [SUPPORTPATH => '*'],
Expand Down

0 comments on commit 522cd74

Please sign in to comment.