diff --git a/system/Test/Constraints/SeeInDatabase.php b/system/Test/Constraints/SeeInDatabase.php index d1025bc13d08..ef795274ed5d 100644 --- a/system/Test/Constraints/SeeInDatabase.php +++ b/system/Test/Constraints/SeeInDatabase.php @@ -34,12 +34,14 @@ class SeeInDatabase extends Constraint /** * Data used to compare results against. * - * @var array + * @var array */ protected $data; /** * SeeInDatabase constructor. + * + * @param array $data */ public function __construct(ConnectionInterface $db, array $data) { diff --git a/system/Test/ControllerTestTrait.php b/system/Test/ControllerTestTrait.php index 2a7be526383d..01c42458969e 100644 --- a/system/Test/ControllerTestTrait.php +++ b/system/Test/ControllerTestTrait.php @@ -76,7 +76,7 @@ trait ControllerTestTrait /** * URI of this request. * - * @var string + * @var string|URI */ protected $uri = 'http://example.com'; @@ -144,7 +144,7 @@ public function controller(string $name) /** * Runs the specified method on the controller and returns the results. * - * @param array $params + * @param mixed ...$params * * @return TestResponse * diff --git a/system/Test/DOMParser.php b/system/Test/DOMParser.php index 52765a4d656b..0afddfa4425e 100644 --- a/system/Test/DOMParser.php +++ b/system/Test/DOMParser.php @@ -198,6 +198,8 @@ public function dontSeeXPath(string $path): bool /** * Search the DOM using an XPath expression. * + * @param list $paths + * * @return DOMNodeList|false */ protected function doXPath(?string $search, string $element, array $paths = []) diff --git a/system/Test/Fabricator.php b/system/Test/Fabricator.php index b366464d5a26..c7cf97780fdc 100644 --- a/system/Test/Fabricator.php +++ b/system/Test/Fabricator.php @@ -37,7 +37,7 @@ class Fabricator /** * Array of counts for fabricated items * - * @var array + * @var array */ protected static $tableCounts = []; @@ -65,28 +65,28 @@ class Fabricator /** * Map of properties and their formatter to use * - * @var array|null + * @var array|null */ protected $formatters; /** * Date fields present in the model * - * @var array + * @var list */ protected $dateFields = []; /** * Array of data to add or override faked versions * - * @var array + * @var array */ protected $overrides = []; /** * Array of single-use data to override faked versions * - * @var array|null + * @var array|null */ protected $tempOverrides; @@ -111,9 +111,9 @@ class Fabricator /** * Store the model instance and initialize Faker to the locale. * - * @param object|string $model Instance or classname of the model to use - * @param array|null $formatters Array of property => formatter - * @param string|null $locale Locale for Faker provider + * @param object|string $model Instance or classname of the model to use + * @param array|null $formatters Array of property => formatter + * @param string|null $locale Locale for Faker provider * * @throws InvalidArgumentException */ @@ -238,6 +238,8 @@ public function getFaker(): Generator /** * Return and reset tempOverrides + * + * @return array */ public function getOverrides(): array { @@ -251,8 +253,8 @@ public function getOverrides(): array /** * Set the overrides, once or persistent * - * @param array $overrides Array of [field => value] - * @param bool $persist Whether these overrides should persist through the next operation + * @param array $overrides Array of [field => value] + * @param bool $persist Whether these overrides should persist through the next operation */ public function setOverrides(array $overrides = [], $persist = true): self { @@ -307,6 +309,8 @@ public function setValid(string $field, ?Closure $validator = null, int $maxRetr /** * Returns the current formatters + * + * @return array|null */ public function getFormatters(): ?array { @@ -316,7 +320,7 @@ public function getFormatters(): ?array /** * Set the formatters to use. Will attempt to autodetect if none are available. * - * @param array|null $formatters Array of [field => formatter], or null to detect + * @param array|null $formatters Array of [field => formatter], or null to detect */ public function setFormatters(?array $formatters = null): self { @@ -399,7 +403,7 @@ protected function guessFormatter($field): string * * @param int|null $count Optional number to create a collection * - * @return array|object An array or object (based on returnType), or an array of returnTypes + * @return array|list|object>|object An array or object (based on returnType), or an array of returnTypes */ public function make(?int $count = null) { @@ -424,7 +428,7 @@ public function make(?int $count = null) /** * Generate an array of faked data * - * @return array An array of faked data + * @return array An array of faked data * * @throws RuntimeException */ @@ -534,7 +538,7 @@ public function makeObject(?string $className = null): object * @param int|null $count Optional number to create a collection * @param bool $mock Whether to execute or mock the insertion * - * @return array|object An array or object (based on returnType), or an array of returnTypes + * @return array|list|object>|object|null An array or object (based on returnType), or an array of returnTypes * * @throws FrameworkException */ @@ -572,7 +576,7 @@ public function create(?int $count = null, bool $mock = false) * * @param int|null $count Optional number to create a collection * - * @return array|object An array or object (based on returnType), or an array of returnTypes + * @return array|list|object>|object An array or object (based on returnType), or an array of returnTypes */ protected function createMock(?int $count = null) { diff --git a/system/Test/FeatureTestTrait.php b/system/Test/FeatureTestTrait.php index ce115761c117..6067aa660928 100644 --- a/system/Test/FeatureTestTrait.php +++ b/system/Test/FeatureTestTrait.php @@ -179,7 +179,8 @@ public function skipEvents() * Calls a single URI, executes it, and returns a TestResponse * instance that can be used to run many assertions against. * - * @param string $method HTTP verb + * @param string $method HTTP verb + * @param array|null $params * * @return TestResponse */ @@ -242,7 +243,8 @@ public function call(string $method, string $path, ?array $params = null) /** * Performs a GET request. * - * @param string $path URI path relative to baseURL. May include query. + * @param string $path URI path relative to baseURL. May include query. + * @param array|null $params * * @return TestResponse * @@ -257,6 +259,8 @@ public function get(string $path, ?array $params = null) /** * Performs a POST request. * + * @param array|null $params + * * @return TestResponse * * @throws RedirectException @@ -270,6 +274,8 @@ public function post(string $path, ?array $params = null) /** * Performs a PUT request * + * @param array|null $params + * * @return TestResponse * * @throws RedirectException @@ -283,6 +289,8 @@ public function put(string $path, ?array $params = null) /** * Performss a PATCH request * + * @param array|null $params + * * @return TestResponse * * @throws RedirectException @@ -296,6 +304,8 @@ public function patch(string $path, ?array $params = null) /** * Performs a DELETE request. * + * @param array|null $params + * * @return TestResponse * * @throws RedirectException @@ -309,6 +319,8 @@ public function delete(string $path, ?array $params = null) /** * Performs an OPTIONS request. * + * @param array|null $params + * * @return TestResponse * * @throws RedirectException @@ -379,10 +391,11 @@ protected function setupHeaders(IncomingRequest $request) * * Always populate the GET vars based on the URI. * - * @param string $name Superglobal name (lowercase) - * @param non-empty-array|null $params + * @param string $name Superglobal name (lowercase) + * @param IncomingRequest $request + * @param non-empty-array|null $params * - * @return Request + * @return IncomingRequest * * @throws ReflectionException */ @@ -418,7 +431,10 @@ protected function populateGlobals(string $name, Request $request, ?array $param * This allows the body to be formatted in a way that the controller is going to * expect as in the case of testing a JSON or XML API. * - * @param array|null $params The parameters to be formatted and put in the body. + * @param IncomingRequest $request + * @param array|null $params The parameters to be formatted and put in the body. + * + * @return IncomingRequest */ protected function setRequestBody(Request $request, ?array $params = null): Request { diff --git a/system/Test/IniTestTrait.php b/system/Test/IniTestTrait.php index 01f8c89a0675..9093854bf225 100644 --- a/system/Test/IniTestTrait.php +++ b/system/Test/IniTestTrait.php @@ -15,8 +15,14 @@ trait IniTestTrait { + /** + * @var array + */ private array $iniSettings = []; + /** + * @param list $keys + */ private function backupIniValues(array $keys): void { foreach ($keys as $key) { diff --git a/system/Test/TestResponse.php b/system/Test/TestResponse.php index 13b1df3abaf0..580f938d77af 100644 --- a/system/Test/TestResponse.php +++ b/system/Test/TestResponse.php @@ -357,6 +357,8 @@ public function getJSON() /** * Test that the response contains a matching JSON fragment. + * + * @param array $fragment */ public function assertJSONFragment(array $fragment, bool $strict = false): void { @@ -378,7 +380,7 @@ public function assertJSONFragment(array $fragment, bool $strict = false): void * Asserts that the JSON exactly matches the passed in data. * If the value being passed in is a string, it must be a json_encoded string. * - * @param array|object|string $test + * @param array|object|string $test */ public function assertJSONExact($test): void { diff --git a/tests/system/Test/ControllerTestTraitTest.php b/tests/system/Test/ControllerTestTraitTest.php index 44301afa376d..5662c773d4cd 100644 --- a/tests/system/Test/ControllerTestTraitTest.php +++ b/tests/system/Test/ControllerTestTraitTest.php @@ -222,7 +222,7 @@ public function testFailsForward(): void ->execute('index'); // won't fail, but doesn't do anything - $this->assertNull($result->ohno('Hi')); + $this->assertNull($result->ohno('Hi')); // @phpstan-ignore method.notFound (Testing TestResponse::__call() fallback) } /** diff --git a/tests/system/Test/DOMParserTest.php b/tests/system/Test/DOMParserTest.php index ce43f2863cc6..58d4e332ce40 100644 --- a/tests/system/Test/DOMParserTest.php +++ b/tests/system/Test/DOMParserTest.php @@ -144,6 +144,9 @@ public function testSeeElement($text): void $this->assertTrue($dom->see($text, 'h1')); } + /** + * @return iterable + */ public static function provideText(): iterable { return [ diff --git a/tests/system/Test/FabricatorTest.php b/tests/system/Test/FabricatorTest.php index 0af1329aad8a..7eaa81863cfd 100644 --- a/tests/system/Test/FabricatorTest.php +++ b/tests/system/Test/FabricatorTest.php @@ -31,6 +31,8 @@ final class FabricatorTest extends CIUnitTestCase { /** * Default formatters to use for UserModel. Should match detected version. + * + * @var array */ private array $formatters = [ 'name' => 'name', diff --git a/tests/system/Test/FeatureTestTraitTest.php b/tests/system/Test/FeatureTestTraitTest.php index 79a00104a079..563815314a6c 100644 --- a/tests/system/Test/FeatureTestTraitTest.php +++ b/tests/system/Test/FeatureTestTraitTest.php @@ -358,6 +358,9 @@ public function testOpenCliRoutesFromHttpGot404(string $from, string $to, string $this->get($httpGet); } + /** + * @return iterable + */ public static function provideOpenCliRoutesFromHttpGot404(): iterable { return [ diff --git a/tests/system/Test/TestLoggerTest.php b/tests/system/Test/TestLoggerTest.php index 4c9f38df0dad..7999ee5364bc 100644 --- a/tests/system/Test/TestLoggerTest.php +++ b/tests/system/Test/TestLoggerTest.php @@ -34,6 +34,9 @@ public function testDidLogMethod(bool $expected, string $level, string $message, ); } + /** + * @return iterable + */ public static function provideDidLogMethod(): iterable { yield 'exact' => [ diff --git a/tests/system/Test/TestResponseTest.php b/tests/system/Test/TestResponseTest.php index 315e1f8db6bd..2ec981e786e5 100644 --- a/tests/system/Test/TestResponseTest.php +++ b/tests/system/Test/TestResponseTest.php @@ -40,6 +40,8 @@ public function testIsOK(int $code, bool $isOk): void /** * Provides status codes and their expected "OK" + * + * @return iterable */ public static function provideHttpStatusCodes(): iterable { @@ -312,7 +314,7 @@ public function testGetJSONEmptyJSON(): void public function testGetJSONFalseJSON(): void { $this->getTestResponse('

Hello World

'); - $this->response->setJSON(false, true); + $this->response->setJSON(false, true); // @phpstan-ignore argument.type (Needed for testing) // this should be FALSE - json_encode(false) $this->assertSame('false', $this->testResponse->getJSON()); @@ -321,7 +323,7 @@ public function testGetJSONFalseJSON(): void public function testGetJSONTrueJSON(): void { $this->getTestResponse('

Hello World

'); - $this->response->setJSON(true, true); + $this->response->setJSON(true, true); // @phpstan-ignore argument.type (Needed for testing) // this should be TRUE - json_encode(true) $this->assertSame('true', $this->testResponse->getJSON()); @@ -427,6 +429,10 @@ public function testAssertJsonExactString(): void $this->testResponse->assertJSONExact($formatter->format($data)); } + /** + * @param array $responseOptions + * @param array $headers + */ protected function getTestResponse(?string $body = null, array $responseOptions = [], array $headers = []): void { $this->response = new Response(new App()); diff --git a/utils/phpstan-baseline/argument.type.neon b/utils/phpstan-baseline/argument.type.neon index e72c009d6298..4451b62f6419 100644 --- a/utils/phpstan-baseline/argument.type.neon +++ b/utils/phpstan-baseline/argument.type.neon @@ -1,4 +1,4 @@ -# total 30 errors +# total 25 errors parameters: ignoreErrors: @@ -57,11 +57,6 @@ parameters: count: 1 path: ../../tests/system/Helpers/NumberHelperTest.php - - - message: '#^Parameter \#1 \$request of method CodeIgniter\\CodeIgniter\:\:setRequest\(\) expects CodeIgniter\\HTTP\\CLIRequest\|CodeIgniter\\HTTP\\IncomingRequest, CodeIgniter\\HTTP\\Request given\.$#' - count: 1 - path: ../../tests/system/HomeTest.php - - message: '#^Parameter \#2 \$message of method CodeIgniter\\Log\\Handlers\\ChromeLoggerHandler\:\:handle\(\) expects string, stdClass given\.$#' count: 1 @@ -72,26 +67,6 @@ parameters: count: 1 path: ../../tests/system/RESTful/ResourceControllerTest.php - - - message: '#^Parameter \#1 \$request of method CodeIgniter\\CodeIgniter\:\:setRequest\(\) expects CodeIgniter\\HTTP\\CLIRequest\|CodeIgniter\\HTTP\\IncomingRequest, CodeIgniter\\HTTP\\Request given\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestAutoRoutingImprovedTest.php - - - - message: '#^Parameter \#1 \$request of method CodeIgniter\\CodeIgniter\:\:setRequest\(\) expects CodeIgniter\\HTTP\\CLIRequest\|CodeIgniter\\HTTP\\IncomingRequest, CodeIgniter\\HTTP\\Request given\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestTraitTest.php - - - - message: '#^Parameter \#1 \$body of method CodeIgniter\\HTTP\\Response\:\:setJSON\(\) expects array\\|object\|string, false given\.$#' - count: 1 - path: ../../tests/system/Test/TestResponseTest.php - - - - message: '#^Parameter \#1 \$body of method CodeIgniter\\HTTP\\Response\:\:setJSON\(\) expects array\\|object\|string, true given\.$#' - count: 1 - path: ../../tests/system/Test/TestResponseTest.php - - message: '#^Parameter \#2 \$context of method CodeIgniter\\View\\Parser\:\:setData\(\) expects ''attr''\|''css''\|''html''\|''js''\|''raw''\|''url''\|null, ''unknown'' given\.$#' count: 3 diff --git a/utils/phpstan-baseline/assign.propertyType.neon b/utils/phpstan-baseline/assign.propertyType.neon index 735faa6341d8..a2a5ca34cc63 100644 --- a/utils/phpstan-baseline/assign.propertyType.neon +++ b/utils/phpstan-baseline/assign.propertyType.neon @@ -1,4 +1,4 @@ -# total 22 errors +# total 20 errors parameters: ignoreErrors: @@ -62,11 +62,6 @@ parameters: count: 1 path: ../../tests/system/Session/SessionTest.php - - - message: '#^Property CodeIgniter\\Test\\ControllerTestTraitTest\:\:\$uri \(string\) does not accept CodeIgniter\\HTTP\\SiteURI\.$#' - count: 2 - path: ../../tests/system/Test/ControllerTestTraitTest.php - - message: '#^Property CodeIgniter\\View\\ParserPluginTest\:\:\$validator \(CodeIgniter\\Validation\\Validation\) does not accept CodeIgniter\\Validation\\ValidationInterface\.$#' count: 1 diff --git a/utils/phpstan-baseline/loader.neon b/utils/phpstan-baseline/loader.neon index d017c3f9b903..61ebc04982b4 100644 --- a/utils/phpstan-baseline/loader.neon +++ b/utils/phpstan-baseline/loader.neon @@ -1,4 +1,4 @@ -# total 485 errors +# total 419 errors includes: - argument.type.neon diff --git a/utils/phpstan-baseline/method.notFound.neon b/utils/phpstan-baseline/method.notFound.neon index 97c2353c3ea4..67fac4e02b49 100644 --- a/utils/phpstan-baseline/method.notFound.neon +++ b/utils/phpstan-baseline/method.notFound.neon @@ -1,4 +1,4 @@ -# total 21 errors +# total 20 errors parameters: ignoreErrors: @@ -42,11 +42,6 @@ parameters: count: 1 path: ../../tests/system/RESTful/ResourceControllerTest.php - - - message: '#^Call to an undefined method CodeIgniter\\Test\\TestResponse\:\:ohno\(\)\.$#' - count: 1 - path: ../../tests/system/Test/ControllerTestTraitTest.php - - message: '#^Call to an undefined method CodeIgniter\\View\\Table\:\:compileTemplate\(\)\.$#' count: 2 diff --git a/utils/phpstan-baseline/missingType.iterableValue.neon b/utils/phpstan-baseline/missingType.iterableValue.neon index fee6f02c8294..333eaa92ae2e 100644 --- a/utils/phpstan-baseline/missingType.iterableValue.neon +++ b/utils/phpstan-baseline/missingType.iterableValue.neon @@ -1,4 +1,4 @@ -# total 340 errors +# total 282 errors parameters: ignoreErrors: @@ -617,101 +617,6 @@ parameters: count: 1 path: ../../system/Publisher/Publisher.php - - - message: '#^Method CodeIgniter\\Test\\Constraints\\SeeInDatabase\:\:__construct\(\) has parameter \$data with no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/Constraints/SeeInDatabase.php - - - - message: '#^Property CodeIgniter\\Test\\Constraints\\SeeInDatabase\:\:\$data type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/Constraints/SeeInDatabase.php - - - - message: '#^Method CodeIgniter\\Test\\DOMParser\:\:doXPath\(\) has parameter \$paths with no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/DOMParser.php - - - - message: '#^Method CodeIgniter\\Test\\Fabricator\:\:__construct\(\) has parameter \$formatters with no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/Fabricator.php - - - - message: '#^Method CodeIgniter\\Test\\Fabricator\:\:createMock\(\) return type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/Fabricator.php - - - - message: '#^Method CodeIgniter\\Test\\Fabricator\:\:create\(\) return type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/Fabricator.php - - - - message: '#^Method CodeIgniter\\Test\\Fabricator\:\:getFormatters\(\) return type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/Fabricator.php - - - - message: '#^Method CodeIgniter\\Test\\Fabricator\:\:getOverrides\(\) return type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/Fabricator.php - - - - message: '#^Method CodeIgniter\\Test\\Fabricator\:\:makeArray\(\) return type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/Fabricator.php - - - - message: '#^Method CodeIgniter\\Test\\Fabricator\:\:make\(\) return type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/Fabricator.php - - - - message: '#^Method CodeIgniter\\Test\\Fabricator\:\:setFormatters\(\) has parameter \$formatters with no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/Fabricator.php - - - - message: '#^Method CodeIgniter\\Test\\Fabricator\:\:setOverrides\(\) has parameter \$overrides with no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/Fabricator.php - - - - message: '#^Property CodeIgniter\\Test\\Fabricator\:\:\$dateFields type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/Fabricator.php - - - - message: '#^Property CodeIgniter\\Test\\Fabricator\:\:\$formatters type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/Fabricator.php - - - - message: '#^Property CodeIgniter\\Test\\Fabricator\:\:\$overrides type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/Fabricator.php - - - - message: '#^Property CodeIgniter\\Test\\Fabricator\:\:\$tableCounts type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/Fabricator.php - - - - message: '#^Property CodeIgniter\\Test\\Fabricator\:\:\$tempOverrides type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/Fabricator.php - - - - message: '#^Method CodeIgniter\\Test\\TestResponse\:\:assertJSONExact\(\) has parameter \$test with no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/TestResponse.php - - - - message: '#^Method CodeIgniter\\Test\\TestResponse\:\:assertJSONFragment\(\) has parameter \$fragment with no value type specified in iterable type array\.$#' - count: 1 - path: ../../system/Test/TestResponse.php - - message: '#^Method CodeIgniter\\Typography\\Typography\:\:protectCharacters\(\) has parameter \$match with no value type specified in iterable type array\.$#' count: 1 @@ -1077,16 +982,6 @@ parameters: count: 1 path: ../../tests/system/Database/Live/UpdateTest.php - - - message: '#^Method CodeIgniter\\Debug\\ExceptionHandlerTest\:\:backupIniValues\(\) has parameter \$keys with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Debug/ExceptionHandlerTest.php - - - - message: '#^Property CodeIgniter\\Debug\\ExceptionHandlerTest\:\:\$iniSettings type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Debug/ExceptionHandlerTest.php - - message: '#^Method CodeIgniter\\Email\\EmailTest\:\:provideEmailSendWithClearance\(\) return type has no value type specified in iterable type iterable\.$#' count: 1 @@ -1357,51 +1252,6 @@ parameters: count: 1 path: ../../tests/system/Helpers/URLHelper/SiteUrlTest.php - - - message: '#^Method CodeIgniter\\HomeTest\:\:call\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/HomeTest.php - - - - message: '#^Method CodeIgniter\\HomeTest\:\:delete\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/HomeTest.php - - - - message: '#^Method CodeIgniter\\HomeTest\:\:get\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/HomeTest.php - - - - message: '#^Method CodeIgniter\\HomeTest\:\:options\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/HomeTest.php - - - - message: '#^Method CodeIgniter\\HomeTest\:\:patch\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/HomeTest.php - - - - message: '#^Method CodeIgniter\\HomeTest\:\:populateGlobals\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/HomeTest.php - - - - message: '#^Method CodeIgniter\\HomeTest\:\:post\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/HomeTest.php - - - - message: '#^Method CodeIgniter\\HomeTest\:\:put\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/HomeTest.php - - - - message: '#^Method CodeIgniter\\HomeTest\:\:setRequestBody\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/HomeTest.php - - message: '#^Method CodeIgniter\\I18n\\TimeLegacyTest\:\:provideToStringDoesNotDependOnLocale\(\) return type has no value type specified in iterable type iterable\.$#' count: 1 @@ -1522,146 +1372,6 @@ parameters: count: 1 path: ../../tests/system/Router/RouterTest.php - - - message: '#^Method CodeIgniter\\Test\\ControllerTestTraitTest\:\:execute\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/ControllerTestTraitTest.php - - - - message: '#^Method CodeIgniter\\Test\\DOMParserTest\:\:provideText\(\) return type has no value type specified in iterable type iterable\.$#' - count: 1 - path: ../../tests/system/Test/DOMParserTest.php - - - - message: '#^Property CodeIgniter\\Test\\FabricatorTest\:\:\$formatters type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FabricatorTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestAutoRoutingImprovedTest\:\:call\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestAutoRoutingImprovedTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestAutoRoutingImprovedTest\:\:delete\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestAutoRoutingImprovedTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestAutoRoutingImprovedTest\:\:get\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestAutoRoutingImprovedTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestAutoRoutingImprovedTest\:\:options\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestAutoRoutingImprovedTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestAutoRoutingImprovedTest\:\:patch\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestAutoRoutingImprovedTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestAutoRoutingImprovedTest\:\:populateGlobals\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestAutoRoutingImprovedTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestAutoRoutingImprovedTest\:\:post\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestAutoRoutingImprovedTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestAutoRoutingImprovedTest\:\:put\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestAutoRoutingImprovedTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestAutoRoutingImprovedTest\:\:setRequestBody\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestAutoRoutingImprovedTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestTraitTest\:\:call\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestTraitTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestTraitTest\:\:delete\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestTraitTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestTraitTest\:\:get\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestTraitTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestTraitTest\:\:options\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestTraitTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestTraitTest\:\:patch\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestTraitTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestTraitTest\:\:populateGlobals\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestTraitTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestTraitTest\:\:post\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestTraitTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestTraitTest\:\:provideOpenCliRoutesFromHttpGot404\(\) return type has no value type specified in iterable type iterable\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestTraitTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestTraitTest\:\:put\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestTraitTest.php - - - - message: '#^Method CodeIgniter\\Test\\FeatureTestTraitTest\:\:setRequestBody\(\) has parameter \$params with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/FeatureTestTraitTest.php - - - - message: '#^Method CodeIgniter\\Test\\IniTestTraitTest\:\:backupIniValues\(\) has parameter \$keys with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/IniTestTraitTest.php - - - - message: '#^Property CodeIgniter\\Test\\IniTestTraitTest\:\:\$iniSettings type has no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/IniTestTraitTest.php - - - - message: '#^Method CodeIgniter\\Test\\TestLoggerTest\:\:provideDidLogMethod\(\) return type has no value type specified in iterable type iterable\.$#' - count: 1 - path: ../../tests/system/Test/TestLoggerTest.php - - - - message: '#^Method CodeIgniter\\Test\\TestResponseTest\:\:getTestResponse\(\) has parameter \$headers with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/TestResponseTest.php - - - - message: '#^Method CodeIgniter\\Test\\TestResponseTest\:\:getTestResponse\(\) has parameter \$responseOptions with no value type specified in iterable type array\.$#' - count: 1 - path: ../../tests/system/Test/TestResponseTest.php - - - - message: '#^Method CodeIgniter\\Test\\TestResponseTest\:\:provideHttpStatusCodes\(\) return type has no value type specified in iterable type iterable\.$#' - count: 1 - path: ../../tests/system/Test/TestResponseTest.php - - message: '#^Method CodeIgniter\\Throttle\\ThrottleTest\:\:provideTokenTimeCalculationUCs\(\) return type has no value type specified in iterable type iterable\.$#' count: 1