diff --git a/phpstan-baseline.php b/phpstan-baseline.php index 61841f81795a..dd91befad54a 100644 --- a/phpstan-baseline.php +++ b/phpstan-baseline.php @@ -9726,36 +9726,6 @@ 'count' => 1, 'path' => __DIR__ . '/system/View/Parser.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Method CodeIgniter\\\\View\\\\Plugins\\:\\:ValidationErrors\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/View/Plugins.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Method CodeIgniter\\\\View\\\\Plugins\\:\\:lang\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/View/Plugins.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Method CodeIgniter\\\\View\\\\Plugins\\:\\:mailto\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/View/Plugins.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Method CodeIgniter\\\\View\\\\Plugins\\:\\:route\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/View/Plugins.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Method CodeIgniter\\\\View\\\\Plugins\\:\\:safeMailto\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/View/Plugins.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Method CodeIgniter\\\\View\\\\Plugins\\:\\:siteURL\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/View/Plugins.php', -]; $ignoreErrors[] = [ 'message' => '#^Method CodeIgniter\\\\View\\\\RendererInterface\\:\\:render\\(\\) has parameter \\$options with no value type specified in iterable type array\\.$#', 'count' => 1, diff --git a/system/View/Plugins.php b/system/View/Plugins.php index da147d097d06..19b431a0fab3 100644 --- a/system/View/Plugins.php +++ b/system/View/Plugins.php @@ -42,6 +42,8 @@ public static function previousURL() /** * Wrap helper function to use as view plugin. + * + * @param array{email?: string, title?: string, attributes?: array|object|string} $params */ public static function mailto(array $params = []): string { @@ -54,6 +56,8 @@ public static function mailto(array $params = []): string /** * Wrap helper function to use as view plugin. + * + * @param array{email?: string, title?: string, attributes?: array|object|string} $params */ public static function safeMailto(array $params = []): string { @@ -66,6 +70,8 @@ public static function safeMailto(array $params = []): string /** * Wrap helper function to use as view plugin. + * + * @param array|list $params */ public static function lang(array $params = []): string { @@ -76,6 +82,8 @@ public static function lang(array $params = []): string /** * Wrap helper function to use as view plugin. + * + * @param array{field?: string} $params */ public static function ValidationErrors(array $params = []): string { @@ -90,6 +98,8 @@ public static function ValidationErrors(array $params = []): string /** * Wrap helper function to use as view plugin. * + * @param list $params + * * @return false|string */ public static function route(array $params = []) @@ -99,6 +109,8 @@ public static function route(array $params = []) /** * Wrap helper function to use as view plugin. + * + * @param list $params */ public static function siteURL(array $params = []): string {