You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bump PHPStan to level 3 and fix type/annotation issues
Raise the PHPStan analysis level from 2 to 3 and resolve the resulting
issues, all safe PHPDoc/annotation corrections with no behavior change:
- Correct return-type PHPDoc to match actual behavior: Assets::
generate_storage_signature (bool), Assets::build_item (array|null),
Media::get_transformation (int|string|false), Media::cloudinary_url
(string|null), Media::filter_downsize (array|false), Media::
get_context_options (string), Settings::save (string[]), Api::sign
(string), Api::call (array|string|WP_Error), Page::form/notice and
Sync::action (array|null), On_Off::sanitize_value (string).
- Widen base Text::sanitize_value PHPDoc to mixed so the array/bool
overrides (Checkbox, Cron, Crops, React, Tags_Input, On_Off) are
covariant-compatible.
- Fix settings/setting type confusion: correct Component\Settings
interface param to Cloudinary\Settings, widen Settings_Component::
$settings and Delivery_Feature::$settings to Settings|Setting, align
Gallery/Extensions/Global_Transformations settings property types.
- Fix Setting::$parent (string slug, not self) and get_option_parent
return (Setting|null).
- Fix Sync::$managers to include Sync_Queue.
- Fix Line_Stat $connect type (Cloudinary\Connect) and narrow at call
site; allow numeric used_percent/limit.
- Cast ini_get in Cron::$daemon_watcher_interval; default Api::
$pending_url to null; widen Url_Object::get_id to int|string|null.
- Correct get_terms return-type PHPDoc and annotate video metadata to
resolve offset access on WP stub arrays.
0 commit comments