Skip to content

refactor: make a separated function for thumbnail fetch #1699

refactor: make a separated function for thumbnail fetch

refactor: make a separated function for thumbnail fetch #1699

Triggered via push August 19, 2025 11:55
Status Failure
Total duration 2m 32s
Artifacts

test-php.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 errors
PHPStan
Process completed with exit code 1.
PHPStan: includes/gutenberg/feedzy-rss-feeds-loop-block.php#L312
Method Feedzy_Rss_Feeds_Loop_Block::get_thumbnail() should return string but returns array<int, bool|int|string>|false.
PHPStan: includes/gutenberg/feedzy-rss-feeds-loop-block.php#L142
Undefined variable: $default_thumbnail_img
PHPStan: includes/gutenberg/feedzy-rss-feeds-loop-block.php#L141
Undefined variable: $thumb
PHPStan: includes/gutenberg/feedzy-rss-feeds-loop-block.php#L0
Ignored error pattern #^Method Feedzy_Rss_Feeds_Loop_Block\:\:render_callback\(\) has parameter \$attributes with no value type specified in iterable type array\.$# in path /home/runner/work/feedzy-rss-feeds/feedzy-rss-feeds/includes/gutenberg/feedzy-rss-feeds-loop-block.php was not matched in reported errors.
PHPStan: includes/gutenberg/feedzy-rss-feeds-loop-block.php#L0
Ignored error pattern #^Method Feedzy_Rss_Feeds_Loop_Block\:\:get_value\(\) has parameter \$item with no value type specified in iterable type array\.$# in path /home/runner/work/feedzy-rss-feeds/feedzy-rss-feeds/includes/gutenberg/feedzy-rss-feeds-loop-block.php was not matched in reported errors.