diff --git a/tests/system/Validation/CreditCardRulesTest.php b/tests/system/Validation/CreditCardRulesTest.php index b6a0b35be294..e578c0b4d980 100644 --- a/tests/system/Validation/CreditCardRulesTest.php +++ b/tests/system/Validation/CreditCardRulesTest.php @@ -24,6 +24,10 @@ final class CreditCardRulesTest extends StrictCreditCardRulesTest { protected Validation $validation; + + /** + * @var array|string>> + */ protected array $config = [ 'ruleSets' => [ Rules::class, diff --git a/tests/system/Validation/FileRulesTest.php b/tests/system/Validation/FileRulesTest.php index f19552463c2d..2b43768e1ac8 100644 --- a/tests/system/Validation/FileRulesTest.php +++ b/tests/system/Validation/FileRulesTest.php @@ -24,6 +24,10 @@ final class FileRulesTest extends StrictFileRulesTest { protected Validation $validation; + + /** + * @var array|string>> + */ protected array $config = [ 'ruleSets' => [ Rules::class, diff --git a/tests/system/Validation/FormatRulesTest.php b/tests/system/Validation/FormatRulesTest.php index 7849ad3afd4c..198250652816 100644 --- a/tests/system/Validation/FormatRulesTest.php +++ b/tests/system/Validation/FormatRulesTest.php @@ -31,6 +31,10 @@ class FormatRulesTest extends CIUnitTestCase public const ALPHANUMERIC = 'abcdefghijklmnopqrstuvwxyzABCDEFGHLIJKLMNOPQRSTUVWXYZ0123456789'; protected Validation $validation; + + /** + * @var array|string>> + */ protected array $config = [ 'ruleSets' => [ Rules::class, diff --git a/tests/system/Validation/RulesTest.php b/tests/system/Validation/RulesTest.php index 7d89b31c7fe9..8bb6cab3ce77 100644 --- a/tests/system/Validation/RulesTest.php +++ b/tests/system/Validation/RulesTest.php @@ -29,6 +29,10 @@ class RulesTest extends CIUnitTestCase { protected Validation $validation; + + /** + * @var array|string>> + */ protected array $config = [ 'ruleSets' => [ Rules::class, diff --git a/tests/system/Validation/StrictRules/CreditCardRulesTest.php b/tests/system/Validation/StrictRules/CreditCardRulesTest.php index 3b57dc5f4290..7cbe81038e66 100644 --- a/tests/system/Validation/StrictRules/CreditCardRulesTest.php +++ b/tests/system/Validation/StrictRules/CreditCardRulesTest.php @@ -28,6 +28,10 @@ class CreditCardRulesTest extends CIUnitTestCase { protected Validation $validation; + + /** + * @var array|string>> + */ protected array $config = [ 'ruleSets' => [ Rules::class, diff --git a/tests/system/Validation/StrictRules/FileRulesTest.php b/tests/system/Validation/StrictRules/FileRulesTest.php index cce8cf30e572..5bb259b254ea 100644 --- a/tests/system/Validation/StrictRules/FileRulesTest.php +++ b/tests/system/Validation/StrictRules/FileRulesTest.php @@ -28,6 +28,10 @@ class FileRulesTest extends CIUnitTestCase { protected Validation $validation; + + /** + * @var array|string>> + */ protected array $config = [ 'ruleSets' => [ Rules::class, diff --git a/tests/system/Validation/StrictRules/FormatRulesTest.php b/tests/system/Validation/StrictRules/FormatRulesTest.php index 998f8f324a16..92d12ad8ad1a 100644 --- a/tests/system/Validation/StrictRules/FormatRulesTest.php +++ b/tests/system/Validation/StrictRules/FormatRulesTest.php @@ -23,6 +23,9 @@ #[Group('Others')] final class FormatRulesTest extends TraditionalFormatRulesTest { + /** + * @var array|string>> + */ protected array $config = [ 'ruleSets' => [ Rules::class, diff --git a/tests/system/Validation/StrictRules/RulesTest.php b/tests/system/Validation/StrictRules/RulesTest.php index de06bfe576ec..fc9a771715c8 100644 --- a/tests/system/Validation/StrictRules/RulesTest.php +++ b/tests/system/Validation/StrictRules/RulesTest.php @@ -26,6 +26,10 @@ final class RulesTest extends TraditionalRulesTest { protected Validation $validation; + + /** + * @var array|string>> + */ protected array $config = [ 'ruleSets' => [ Rules::class, diff --git a/tests/system/Validation/StrictRules/ValidationTest.php b/tests/system/Validation/StrictRules/ValidationTest.php index ca0160ee44e2..9473cd9f6b32 100644 --- a/tests/system/Validation/StrictRules/ValidationTest.php +++ b/tests/system/Validation/StrictRules/ValidationTest.php @@ -23,6 +23,9 @@ #[Group('Others')] final class ValidationTest extends TraditionalValidationTest { + /** + * @var array|string>|string>|string> + */ protected static array $config = [ 'ruleSets' => [ Rules::class, diff --git a/tests/system/Validation/ValidationTest.php b/tests/system/Validation/ValidationTest.php index 87e9e78a1518..b015ab50f363 100644 --- a/tests/system/Validation/ValidationTest.php +++ b/tests/system/Validation/ValidationTest.php @@ -36,6 +36,10 @@ class ValidationTest extends CIUnitTestCase { protected Validation $validation; + + /** + * @var array|string>|string>|string> + */ protected static array $config = [ 'ruleSets' => [ Rules::class, diff --git a/utils/phpstan-baseline/loader.neon b/utils/phpstan-baseline/loader.neon index a9d0c530a37f..14cccb8bd4d3 100644 --- a/utils/phpstan-baseline/loader.neon +++ b/utils/phpstan-baseline/loader.neon @@ -1,4 +1,4 @@ -# total 2800 errors +# total 2790 errors includes: - argument.type.neon diff --git a/utils/phpstan-baseline/missingType.iterableValue.neon b/utils/phpstan-baseline/missingType.iterableValue.neon index 42c18a6e7522..cba1a519c0e4 100644 --- a/utils/phpstan-baseline/missingType.iterableValue.neon +++ b/utils/phpstan-baseline/missingType.iterableValue.neon @@ -1,4 +1,4 @@ -# total 1388 errors +# total 1378 errors parameters: ignoreErrors: @@ -6362,16 +6362,6 @@ parameters: count: 1 path: ../../tests/system/Throttle/ThrottleTest.php - - - message: '#^Property CodeIgniter\\Validation\\CreditCardRulesTest\:\:\$config type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Validation/CreditCardRulesTest.php - - - - message: '#^Property CodeIgniter\\Validation\\FileRulesTest\:\:\$config type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Validation/FileRulesTest.php - - message: '#^Method CodeIgniter\\Validation\\FormatRulesTest\:\:alphaNumericProvider\(\) return type has no value type specified in iterable type iterable\.$#' count: 1 @@ -6477,11 +6467,6 @@ parameters: count: 1 path: ../../tests/system/Validation/FormatRulesTest.php - - - message: '#^Property CodeIgniter\\Validation\\FormatRulesTest\:\:\$config type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Validation/FormatRulesTest.php - - message: '#^Method CodeIgniter\\Validation\\RulesTest\:\:provideDiffers\(\) return type has no value type specified in iterable type iterable\.$#' count: 1 @@ -6662,11 +6647,6 @@ parameters: count: 1 path: ../../tests/system/Validation/RulesTest.php - - - message: '#^Property CodeIgniter\\Validation\\RulesTest\:\:\$config type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Validation/RulesTest.php - - message: '#^Method CodeIgniter\\Validation\\StrictRules\\CreditCardRulesTest\:\:calculateLuhnChecksum\(\) has parameter \$digits with no value type specified in iterable type array\.$#' count: 1 @@ -6677,16 +6657,6 @@ parameters: count: 1 path: ../../tests/system/Validation/StrictRules/CreditCardRulesTest.php - - - message: '#^Property CodeIgniter\\Validation\\StrictRules\\CreditCardRulesTest\:\:\$config type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Validation/StrictRules/CreditCardRulesTest.php - - - - message: '#^Property CodeIgniter\\Validation\\StrictRules\\FileRulesTest\:\:\$config type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Validation/StrictRules/FileRulesTest.php - - message: '#^Method CodeIgniter\\Validation\\StrictRules\\FormatRulesTest\:\:provideAlphaSpace\(\) return type has no value type specified in iterable type iterable\.$#' count: 1 @@ -6697,11 +6667,6 @@ parameters: count: 1 path: ../../tests/system/Validation/StrictRules/FormatRulesTest.php - - - message: '#^Property CodeIgniter\\Validation\\StrictRules\\FormatRulesTest\:\:\$config type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Validation/StrictRules/FormatRulesTest.php - - message: '#^Method CodeIgniter\\Validation\\StrictRules\\RulesTest\:\:provideDiffers\(\) return type has no value type specified in iterable type iterable\.$#' count: 1 @@ -6757,16 +6722,6 @@ parameters: count: 1 path: ../../tests/system/Validation/StrictRules/RulesTest.php - - - message: '#^Property CodeIgniter\\Validation\\StrictRules\\RulesTest\:\:\$config type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Validation/StrictRules/RulesTest.php - - - - message: '#^Property CodeIgniter\\Validation\\StrictRules\\ValidationTest\:\:\$config type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Validation/StrictRules/ValidationTest.php - - message: '#^Method CodeIgniter\\Validation\\ValidationTest\:\:placeholderReplacementResultDetermination\(\) has parameter \$data with no value type specified in iterable type array\.$#' count: 1 @@ -6862,11 +6817,6 @@ parameters: count: 1 path: ../../tests/system/Validation/ValidationTest.php - - - message: '#^Property CodeIgniter\\Validation\\ValidationTest\:\:\$config type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Validation/ValidationTest.php - - message: '#^Method CodeIgniter\\View\\ParserTest\:\:provideEscHandling\(\) return type has no value type specified in iterable type iterable\.$#' count: 1