Skip to content

Run PHPStan on add-phpcs-phpstan #7

Run PHPStan on add-phpcs-phpstan

Run PHPStan on add-phpcs-phpstan #7

Triggered via pull request October 4, 2023 18:54
Status Failure
Total duration 28s
Artifacts

phpstan.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan: image-sizes/qmx-image-sizes-collector.php#L93
Method QMX_Collector_Image_Sizes::action__plugins_loaded() has no return type specified.
phpstan: image-sizes/qmx-image-sizes-collector.php#L101
Method QMX_Collector_Image_Sizes::action__after_setup_theme() has no return type specified.
phpstan: image-sizes/qmx-image-sizes-collector.php#L120
Access to an undefined property WP_Post|WP_Post_Type|WP_Term|WP_User::$post_content.
phpstan: image-sizes/qmx-image-sizes-collector.php#L141
Method QMX_Collector_Image_Sizes::filter__wp_get_attachment_image_src() has no return type specified.
phpstan: image-sizes/qmx-image-sizes-collector.php#L141
Method QMX_Collector_Image_Sizes::filter__wp_get_attachment_image_src() has parameter $attachment_id with no type specified.
phpstan: image-sizes/qmx-image-sizes-collector.php#L141
Method QMX_Collector_Image_Sizes::filter__wp_get_attachment_image_src() has parameter $image with no type specified.
phpstan: image-sizes/qmx-image-sizes-collector.php#L141
Method QMX_Collector_Image_Sizes::filter__wp_get_attachment_image_src() has parameter $size with no type specified.
phpstan: image-sizes/qmx-image-sizes-collector.php#L161
Method QMX_Collector_Image_Sizes::process_added_image_sizes() has no return type specified.
phpstan: image-sizes/qmx-image-sizes-collector.php#L161
Method QMX_Collector_Image_Sizes::process_added_image_sizes() has parameter $source with no type specified.
phpstan: image-sizes/qmx-image-sizes-collector.php#L224
Method QMX_Collector_Image_Sizes::add_ratio() has no return type specified.