Skip to content

Bump szepeviktor/phpstan-wordpress from 2.0.3 to 2.0.4 #5841

Bump szepeviktor/phpstan-wordpress from 2.0.3 to 2.0.4

Bump szepeviktor/phpstan-wordpress from 2.0.3 to 2.0.4 #5841

Triggered via pull request August 28, 2026 17:52
Status Failure
Total duration 7m 14s
Artifacts

lint-php.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Lint: includes/REST_API/Font_Controller.php#L384
Return type (array{properties: array{family?: array{description: string, type: string, context: array<string>, default?: mixed}, fallbacks?: array{description: string, type: string, context: array<string>, default?: mixed}, weights?: array{description: string, type: string, context: array<string>, default?: mixed}, styles?: array{description: string, type: string, context: array<string>, default?: mixed}, variants?: array{description: string, type: string, context: array<string>, default?: mixed}, service?: array{description: string, type: string, context: array<string>, default?: mixed}, metrics?: array{description: string, type: string, context: array<string>, default?: mixed}, id?: array{description: string, type: string, context: array<string>, default?: mixed}, ...}}) of method Google\Web_Stories\REST_API\Font_Controller::get_item_schema() should be compatible with return type (array{title: non-empty-string, type: non-empty-string, properties: array<string, array<string, mixed>>, ...}) of method WP_REST_Posts_Controller::get_item_schema()
Lint: includes/Model/Story.php#L183
Offset 'width' might not exist on non-empty-array{width?: int<1, max>, height?: int<1, max>, file?: non-empty-string, filesize?: int<0, max>, original_image?: non-empty-string, source_image?: non-empty-string, sizes?: array<non-empty-string, array{file: non-empty-string, width: int<1, max>, height: int<1, max>, mime-type: non-empty-string, filesize?: int<0, max>, ...}>, image_meta?: array{aperture: int|numeric-string, credit: string, camera: string, caption: string, created_timestamp: int|numeric-string, copyright: string, focal_length: int|numeric-string, iso: int|numeric-string, ...}, ...}.
Lint: includes/Model/Story.php#L183
Offset 'height' might not exist on non-empty-array{width?: int<1, max>, height?: int<1, max>, file?: non-empty-string, filesize?: int<0, max>, original_image?: non-empty-string, source_image?: non-empty-string, sizes?: array<non-empty-string, array{file: non-empty-string, width: int<1, max>, height: int<1, max>, mime-type: non-empty-string, filesize?: int<0, max>, ...}>, image_meta?: array{aperture: int|numeric-string, credit: string, camera: string, caption: string, created_timestamp: int|numeric-string, copyright: string, focal_length: int|numeric-string, iso: int|numeric-string, ...}, ...}.
Lint: includes/Media/Image_Sizes.php#L104
Offset 'mime-type' on array{file: non-empty-string, width: int<1, max>, height: int<1, max>, mime-type: non-empty-string, filesize?: int<0, max>, ...} in isset() always exists and is not nullable.
Lint: includes/Assets.php#L387
No error with identifier argument.type is reported on line 387.
Lint: includes/Assets.php#L368
Parameter #3 $deps of function wp_enqueue_script expects array<non-empty-string>, array<string> given.
Lint: includes/Assets.php#L368
Parameter #1 $handle of function wp_enqueue_script expects non-empty-string, string given.
Lint: includes/Assets.php#L308
Parameter #3 $deps of function wp_register_script expects array<non-empty-string>, array<string> given.
Lint: includes/Assets.php#L307
Parameter #2 $src of function wp_register_script expects non-empty-string|false, string|false given.
Lint: includes/Assets.php#L306
Parameter #1 $handle of function wp_register_script expects non-empty-string, string given.