Skip to content

Commit d153ac7

Browse files
fix: phpstan
1 parent 7ea4af4 commit d153ac7

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

includes/abstract/feedzy-rss-feeds-admin-abstract.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -822,10 +822,10 @@ function ( $url ) {
822822
* @since 3.1.7
823823
* @access private
824824
*
825-
* @param string $feed_url The feed URL.
826-
* @param string $cache The cache string (eg. 1_hour, 30_min etc.).
827-
* @param array $sc The shortcode attributes.
828-
* @param bool $allow_https Defaults to constant FEEDZY_ALLOW_HTTPS.
825+
* @param string|array<string> $feed_url The feed URL.
826+
* @param string $cache The cache string (eg. 1_hour, 30_min etc.).
827+
* @param array $sc The shortcode attributes.
828+
* @param bool $allow_https Defaults to constant FEEDZY_ALLOW_HTTPS.
829829
*
830830
* @return SimplePie
831831
*/

phpstan-baseline.neon

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,6 @@ parameters:
270270
count: 1
271271
path: includes/abstract/feedzy-rss-feeds-admin-abstract.php
272272

273-
-
274-
message: "#^Parameter \\#1 \\$feed_url of method Feedzy_Rss_Feeds_Admin_Abstract\\:\\:init_feed\\(\\) expects string, array given\\.$#"
275-
count: 2
276-
path: includes/abstract/feedzy-rss-feeds-admin-abstract.php
277-
278273
-
279274
message: "#^Parameter \\#1 \\$text of function esc_attr expects string, int\\<0, max\\>\\|false given\\.$#"
280275
count: 1
@@ -297,17 +292,12 @@ parameters:
297292

298293
-
299294
message: "#^Result of && is always false\\.$#"
300-
count: 4
295+
count: 2
301296
path: includes/abstract/feedzy-rss-feeds-admin-abstract.php
302297

303298
-
304299
message: "#^Result of \\|\\| is always true\\.$#"
305-
count: 3
306-
path: includes/abstract/feedzy-rss-feeds-admin-abstract.php
307-
308-
-
309-
message: "#^Strict comparison using \\=\\=\\= between 1 and \\*NEVER\\* will always evaluate to false\\.$#"
310-
count: 2
300+
count: 1
311301
path: includes/abstract/feedzy-rss-feeds-admin-abstract.php
312302

313303
-

0 commit comments

Comments
 (0)