Skip to content

Fix/923 reduce the number of api #17

Fix/923 reduce the number of api

Fix/923 reduce the number of api #17

Triggered via pull request December 9, 2024 14:23
Status Failure
Total duration 33s
Artifacts

lint_phpstan.yml

on: pull_request
Matrix: run
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
WPRocket lint with PHP Stan. PHP 8.2 on ubuntu-latest.: classes/User/User.php#L118
Property Imagify\User\User::$error (bool|WP_Error) is never assigned WP_Error so it can be removed from the property type.
WPRocket lint with PHP Stan. PHP 8.2 on ubuntu-latest.: classes/User/User.php#L124
Property Imagify\User\User::$cache_key is never read, only written.
WPRocket lint with PHP Stan. PHP 8.2 on ubuntu-latest.: classes/User/User.php#L131
Property Imagify\User\User::$cache_duration is never read, only written.
WPRocket lint with PHP Stan. PHP 8.2 on ubuntu-latest.: classes/User/User.php#L146
Property Imagify\User\User::$id (string) in isset() is not nullable.
WPRocket lint with PHP Stan. PHP 8.2 on ubuntu-latest.: classes/User/User.php#L150
Unreachable statement - code above always terminates.
WPRocket lint with PHP Stan. PHP 8.2 on ubuntu-latest.: classes/User/User.php#L171
Method Imagify\User\User::set_user_properties() is unused.
WPRocket lint with PHP Stan. PHP 8.2 on ubuntu-latest.
Process completed with exit code 1.
WPRocket lint with PHP Stan. PHP 8.2 on ubuntu-latest.
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636