Skip to content

Commit b3fcd6c

Browse files
dev: fix phpstan new issues
1 parent b946bf5 commit b3fcd6c

4 files changed

Lines changed: 3 additions & 21 deletions

File tree

inc/css/blocks/class-advanced-column-css.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ public function render_global_css() {
956956
/**
957957
* A port of array.some for PHP.
958958
*
959-
* @param array $items Haystack.
959+
* @param mixed[] $items Haystack.
960960
* @param callable $callback Callback function.
961961
* @return boolean
962962
* @since 2.0.0

inc/css/blocks/class-advanced-columns-css.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ public function render_global_css() {
10311031
/**
10321032
* A port of array.some for PHP.
10331033
*
1034-
* @param array $items Haystack.
1034+
* @param mixed[] $items Haystack.
10351035
* @param callable $callback Callback function.
10361036
* @return boolean
10371037
* @since 2.0.0

inc/integrations/api/form-request-data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public static function sanitize_request_data( $data ) {
290290
/**
291291
* Sanitize the given array.
292292
*
293-
* @param array|string $value The array with the values.
293+
* @param array<string, string|array<string,string>>|string $value The array with the values.
294294
* @return array|string
295295
* @since 2.0.3
296296
*/

phpstan-baseline.neon

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -552,12 +552,6 @@ parameters:
552552
count: 1
553553
path: inc/class-registration.php
554554

555-
-
556-
message: '#^Method ThemeIsle\\GutenbergBlocks\\CSS\\Blocks\\Advanced_Column_CSS\:\:array_any\(\) has parameter \$array with no value type specified in iterable type array\.$#'
557-
identifier: missingType.iterableValue
558-
count: 1
559-
path: inc/css/blocks/class-advanced-column-css.php
560-
561555
-
562556
message: '#^Method ThemeIsle\\GutenbergBlocks\\CSS\\Blocks\\Advanced_Column_CSS\:\:merge_old_attributes\(\) has parameter \$attrs with no value type specified in iterable type array\.$#'
563557
identifier: missingType.iterableValue
@@ -570,12 +564,6 @@ parameters:
570564
count: 1
571565
path: inc/css/blocks/class-advanced-column-css.php
572566

573-
-
574-
message: '#^Method ThemeIsle\\GutenbergBlocks\\CSS\\Blocks\\Advanced_Columns_CSS\:\:array_any\(\) has parameter \$array with no value type specified in iterable type array\.$#'
575-
identifier: missingType.iterableValue
576-
count: 1
577-
path: inc/css/blocks/class-advanced-columns-css.php
578-
579567
-
580568
message: '#^Method ThemeIsle\\GutenbergBlocks\\CSS\\Blocks\\Advanced_Columns_CSS\:\:merge_old_attributes\(\) has parameter \$attrs with no value type specified in iterable type array\.$#'
581569
identifier: missingType.iterableValue
@@ -1008,12 +996,6 @@ parameters:
1008996
count: 1
1009997
path: inc/integrations/api/form-request-data.php
1010998

1011-
-
1012-
message: '#^Method ThemeIsle\\GutenbergBlocks\\Integration\\Form_Data_Request\:\:sanitize_array_map_deep\(\) has parameter \$array with no value type specified in iterable type array\.$#'
1013-
identifier: missingType.iterableValue
1014-
count: 1
1015-
path: inc/integrations/api/form-request-data.php
1016-
1017999
-
10181000
message: '#^Method ThemeIsle\\GutenbergBlocks\\Integration\\Form_Data_Request\:\:sanitize_array_map_deep\(\) return type has no value type specified in iterable type array\.$#'
10191001
identifier: missingType.iterableValue

0 commit comments

Comments
 (0)