Skip to content

Commit 5165009

Browse files
committed
ignote get_terms() arg type issue
1 parent c79d75a commit 5165009

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/DetectCategoryPaginationURLs.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ public static function detect() : array {
2626
foreach ( $taxonomies as $taxonomy ) {
2727
/** @var list<\WP_Term> $terms */
2828
$terms = get_terms(
29-
[ $taxonomy->name ],
29+
// @phpstan-ignore-next-line
30+
$taxonomy->name,
3031
[ 'hide_empty' => true ]
3132
);
3233

src/DetectCategoryURLs.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ public static function detect() : array {
2121
foreach ( $taxonomies as $taxonomy ) {
2222
/** @var list<\WP_Term> $terms */
2323
$terms = get_terms(
24-
[ $taxonomy->name ],
24+
// @phpstan-ignore-next-line
25+
$taxonomy->name,
2526
[ 'hide_empty' => true ]
2627
);
2728

0 commit comments

Comments
 (0)