diff --git a/src/Config/DEARule.php b/src/Config/DEARule.php index a3fe45b..78ef302 100644 --- a/src/Config/DEARule.php +++ b/src/Config/DEARule.php @@ -22,7 +22,7 @@ class DEARule * We use a large database to check temporary emails. However, * If you want to specifically identify the domain as Temporary Email, add it there. * - * @var string[] + * @var list * @phpstan-var list */ public array $filesBlacklisted = [ @@ -40,7 +40,7 @@ class DEARule * We use a large database to check temporary emails. However, * If you want to specifically identify the domain as Temporary Email, add it there. * - * @var string[] + * @var list * @phpstan-var list */ public array $domainBlacklisted = [ @@ -53,7 +53,7 @@ class DEARule * -------------------------------------------------------------------- * The email added here will be considered valid anyway. * - * @var string[] + * @var list * @phpstan-var list */ public array $emailsWhiteListed = [ diff --git a/src/Config/Registrar.php b/src/Config/Registrar.php index f276d8b..7176f2e 100644 --- a/src/Config/Registrar.php +++ b/src/Config/Registrar.php @@ -23,7 +23,7 @@ class Registrar * -------------------------------------------------------------------------- * Register the `is-temp-email` rule for used like CI4 rules. * - * @return array>> + * @return array>> */ public static function Validation(): array { diff --git a/src/Database/Migrations/2023-11-11-105553_LogsTempEmailMigration.php b/src/Database/Migrations/2023-11-11-105553_LogsTempEmailMigration.php index 2f8fe7a..c3422c2 100644 --- a/src/Database/Migrations/2023-11-11-105553_LogsTempEmailMigration.php +++ b/src/Database/Migrations/2023-11-11-105553_LogsTempEmailMigration.php @@ -22,7 +22,7 @@ class LogsTempEmailMigration extends Migration private string $tableName; /** - * @var string[] + * @var list */ private array $attributes; diff --git a/tests/Validation/DEAValidatorTest.php b/tests/Validation/DEAValidatorTest.php index 7486613..c72158b 100644 --- a/tests/Validation/DEAValidatorTest.php +++ b/tests/Validation/DEAValidatorTest.php @@ -63,7 +63,7 @@ public function testIsTempEmail(array $data, bool $expected): void } /** - * @return array|bool>> $data + * @return list|bool>> $data */ public static function provideIsTempEmail(): iterable { @@ -108,7 +108,7 @@ public function testIsTempEmailByMutiDBFiles(array $data, bool $expected): void } /** - * @return array|bool>> $data + * @return list|bool>> $data */ public static function provideIsTempEmailByMutiDBFiles(): iterable { @@ -151,7 +151,7 @@ public function testIsTempEmailByDomainBlacklisted(array $data, bool $expected): } /** - * @return array|bool>> $data + * @return list|bool>> $data */ public static function provideIsTempEmailByDomainBlacklisted(): iterable { @@ -190,7 +190,7 @@ public function testEmailIsDomainBlacklistedButEmailsWhiteListed(array $data, bo } /** - * @return array|bool>> $data + * @return list|bool>> $data */ public static function provideEmailIsDomainBlacklistedButEmailsWhiteListed(): iterable {