Skip to content

JSON schemas for data objects #695

JSON schemas for data objects

JSON schemas for data objects #695

Triggered via pull request October 8, 2023 21:03
Status Failure
Total duration 2m 21s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

coding-standards.yml

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

Annotations

40 errors
PHP / PHP 7.4 / PHP / PHP 7.4: classes/Collector_Assets.php#L231
Property QM_Data_Assets::$assets (array{missing: array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<string>, ...}>, broken: array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<string>, ...}>, header: array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<string>, ...}>, footer: array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<string>, ...}>}|null) does not accept array<'broken'|'footer'|'header'|'missing', non-empty-array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<int, string>, ...}>>.
PHP / PHP 7.4 / PHP / PHP 7.4: classes/Util.php#L428
Method QM_Util::populate_callback() should return array{accepted_args: int, name?: string, file?: string|false, line?: int|false, error?: WP_Error, component?: QM_Component} but returns array<string, mixed>.
PHP / PHP 7.4 / PHP / PHP 7.4: collectors/db_queries.php#L229
Property QM_Data_DB_Queries::$rows (array<int, array{caller: array|null, caller_name: string|null, stack: array<string, mixed>, sql: string, ltime: float, result: bool|int|WP_Error, type: string, component: QM_Component|null, ...}>) does not accept non-empty-array<int, array{caller: array|null, caller_name: string|null, stack: array<string, mixed>, sql: string, ltime: float, result: bool|int|WP_Error, type: string, component: QM_Component|null, ...}|array{caller: mixed, caller_name: mixed, sql: string, ltime: float, result: bool|int|WP_Error|null, type: string, component: QM_Component|null, trace: QM_Backtrace|null, ...}>.
PHP / PHP 7.4 / PHP / PHP 7.4: collectors/languages.php#L176
Property QM_Data_Languages::$languages (array<string, array<string, array{caller: array<string, mixed>, domain: string, file: string|false, found: int|false, handle: string|null, type: 'gettext'|'jed'}>>) does not accept non-empty-array<string, array<string, array{caller: array|false, domain: string, file: string|false, found: int|false, handle: string|null, type: 'gettext'|'jed'}>>.
PHP / PHP 7.4 / PHP / PHP 7.4: collectors/languages.php#L208
Property QM_Data_Languages::$languages (array<string, array<string, array{caller: array<string, mixed>, domain: string, file: string|false, found: int|false, handle: string|null, type: 'gettext'|'jed'}>>) does not accept non-empty-array<string, array<string, array{caller: array|false, domain: string, file: string|false, found: int|false, handle: string|null, type: 'gettext'|'jed'}>>.
PHP / PHP 7.4 / PHP / PHP 7.4: collectors/request.php#L301
Property QM_Data_Request::$queried_object (array{title: string, data?: WP_Post|WP_Post_Type|WP_Term|WP_User, type?: 'WP_Post'|'WP_Post_Type'|'WP_Term'|'WP_User'}) does not accept array{title: string, data?: WP_Post|WP_Post_Type|WP_Term|WP_User, type: class-string<WP_Post>|class-string<WP_Post_Type>|class-string<WP_Term>|class-string<WP_User>}.
PHP / PHP 7.4 / PHP / PHP 7.4: output/html/request.php#L156
Property QM_Data_Request::$queried_object (array<string, string|WP_Post|WP_Post_Type|WP_Term|WP_User>) in empty() is not falsy.
PHP / PHP 7.4 / PHP / PHP 7.4: output/html/request.php#L157
Offset 'data' does not exist on array{title: string, data?: WP_Post|WP_Post_Type|WP_Term|WP_User, type?: 'WP_Post'|'WP_Post_Type'|'WP_Term'|'WP_User'}.
PHP / PHP 7.4 / PHP / PHP 7.4: output/raw/db_queries.php#L98
Offset 'trace' on array{caller: array|null, caller_name: string|null, stack: array<string, mixed>, sql: string, ltime: float, result: bool|int|WP_Error, type: string, component: QM_Component|null, ...} in isset() always exists and is not nullable.
PHP / PHP 7.4 / PHP / PHP 7.4: output/raw/db_queries.php#L100
Cannot call method get_filtered_trace() on array<string, mixed>.
PHP / PHP 8.1 / PHP / PHP 8.1: classes/Collector_Assets.php#L231
Property QM_Data_Assets::$assets (array{missing: array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<string>, ...}>, broken: array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<string>, ...}>, header: array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<string>, ...}>, footer: array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<string>, ...}>}|null) does not accept array<'broken'|'footer'|'header'|'missing', non-empty-array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<int, string>, ...}>>.
PHP / PHP 8.1 / PHP / PHP 8.1: classes/Util.php#L428
Method QM_Util::populate_callback() should return array{accepted_args: int, name?: string, file?: string|false, line?: int|false, error?: WP_Error, component?: QM_Component} but returns array<string, mixed>.
PHP / PHP 8.1 / PHP / PHP 8.1: collectors/db_queries.php#L229
Property QM_Data_DB_Queries::$rows (array<int, array{caller: array|null, caller_name: string|null, stack: array<string, mixed>, sql: string, ltime: float, result: bool|int|WP_Error, type: string, component: QM_Component|null, ...}>) does not accept non-empty-array<int, array{caller: array|null, caller_name: string|null, stack: array<string, mixed>, sql: string, ltime: float, result: bool|int|WP_Error, type: string, component: QM_Component|null, ...}|array{caller: mixed, caller_name: mixed, sql: string, ltime: float, result: bool|int|WP_Error|null, type: string, component: QM_Component|null, trace: QM_Backtrace|null, ...}>.
PHP / PHP 8.1 / PHP / PHP 8.1: collectors/languages.php#L176
Property QM_Data_Languages::$languages (array<string, array<string, array{caller: array<string, mixed>, domain: string, file: string|false, found: int|false, handle: string|null, type: 'gettext'|'jed'}>>) does not accept non-empty-array<string, array<string, array{caller: array|false, domain: string, file: string|false, found: int|false, handle: string|null, type: 'gettext'|'jed'}>>.
PHP / PHP 8.1 / PHP / PHP 8.1: collectors/languages.php#L208
Property QM_Data_Languages::$languages (array<string, array<string, array{caller: array<string, mixed>, domain: string, file: string|false, found: int|false, handle: string|null, type: 'gettext'|'jed'}>>) does not accept non-empty-array<string, array<string, array{caller: array|false, domain: string, file: string|false, found: int|false, handle: string|null, type: 'gettext'|'jed'}>>.
PHP / PHP 8.1 / PHP / PHP 8.1: collectors/request.php#L301
Property QM_Data_Request::$queried_object (array{title: string, data?: WP_Post|WP_Post_Type|WP_Term|WP_User, type?: 'WP_Post'|'WP_Post_Type'|'WP_Term'|'WP_User'}) does not accept array{title: string, data?: WP_Post|WP_Post_Type|WP_Term|WP_User, type: class-string<WP_Post>|class-string<WP_Post_Type>|class-string<WP_Term>|class-string<WP_User>}.
PHP / PHP 8.1 / PHP / PHP 8.1: output/html/request.php#L156
Property QM_Data_Request::$queried_object (array<string, string|WP_Post|WP_Post_Type|WP_Term|WP_User>) in empty() is not falsy.
PHP / PHP 8.1 / PHP / PHP 8.1: output/html/request.php#L157
Offset 'data' does not exist on array{title: string, data?: WP_Post|WP_Post_Type|WP_Term|WP_User, type?: 'WP_Post'|'WP_Post_Type'|'WP_Term'|'WP_User'}.
PHP / PHP 8.1 / PHP / PHP 8.1: output/raw/db_queries.php#L98
Offset 'trace' on array{caller: array|null, caller_name: string|null, stack: array<string, mixed>, sql: string, ltime: float, result: bool|int|WP_Error, type: string, component: QM_Component|null, ...} in isset() always exists and is not nullable.
PHP / PHP 8.1 / PHP / PHP 8.1: output/raw/db_queries.php#L100
Cannot call method get_filtered_trace() on array<string, mixed>.
PHP / PHP 8.0 / PHP / PHP 8.0: classes/Collector_Assets.php#L231
Property QM_Data_Assets::$assets (array{missing: array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<string>, ...}>, broken: array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<string>, ...}>, header: array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<string>, ...}>, footer: array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<string>, ...}>}|null) does not accept array<'broken'|'footer'|'header'|'missing', non-empty-array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<int, string>, ...}>>.
PHP / PHP 8.0 / PHP / PHP 8.0: classes/Util.php#L428
Method QM_Util::populate_callback() should return array{accepted_args: int, name?: string, file?: string|false, line?: int|false, error?: WP_Error, component?: QM_Component} but returns array<string, mixed>.
PHP / PHP 8.0 / PHP / PHP 8.0: collectors/db_queries.php#L229
Property QM_Data_DB_Queries::$rows (array<int, array{caller: array|null, caller_name: string|null, stack: array<string, mixed>, sql: string, ltime: float, result: bool|int|WP_Error, type: string, component: QM_Component|null, ...}>) does not accept non-empty-array<int, array{caller: array|null, caller_name: string|null, stack: array<string, mixed>, sql: string, ltime: float, result: bool|int|WP_Error, type: string, component: QM_Component|null, ...}|array{caller: mixed, caller_name: mixed, sql: string, ltime: float, result: bool|int|WP_Error|null, type: string, component: QM_Component|null, trace: QM_Backtrace|null, ...}>.
PHP / PHP 8.0 / PHP / PHP 8.0: collectors/languages.php#L176
Property QM_Data_Languages::$languages (array<string, array<string, array{caller: array<string, mixed>, domain: string, file: string|false, found: int|false, handle: string|null, type: 'gettext'|'jed'}>>) does not accept non-empty-array<string, array<string, array{caller: array|false, domain: string, file: string|false, found: int|false, handle: string|null, type: 'gettext'|'jed'}>>.
PHP / PHP 8.0 / PHP / PHP 8.0: collectors/languages.php#L208
Property QM_Data_Languages::$languages (array<string, array<string, array{caller: array<string, mixed>, domain: string, file: string|false, found: int|false, handle: string|null, type: 'gettext'|'jed'}>>) does not accept non-empty-array<string, array<string, array{caller: array|false, domain: string, file: string|false, found: int|false, handle: string|null, type: 'gettext'|'jed'}>>.
PHP / PHP 8.0 / PHP / PHP 8.0: collectors/request.php#L301
Property QM_Data_Request::$queried_object (array{title: string, data?: WP_Post|WP_Post_Type|WP_Term|WP_User, type?: 'WP_Post'|'WP_Post_Type'|'WP_Term'|'WP_User'}) does not accept array{title: string, data?: WP_Post|WP_Post_Type|WP_Term|WP_User, type: class-string<WP_Post>|class-string<WP_Post_Type>|class-string<WP_Term>|class-string<WP_User>}.
PHP / PHP 8.0 / PHP / PHP 8.0: output/html/request.php#L156
Property QM_Data_Request::$queried_object (array<string, string|WP_Post|WP_Post_Type|WP_Term|WP_User>) in empty() is not falsy.
PHP / PHP 8.0 / PHP / PHP 8.0: output/html/request.php#L157
Offset 'data' does not exist on array{title: string, data?: WP_Post|WP_Post_Type|WP_Term|WP_User, type?: 'WP_Post'|'WP_Post_Type'|'WP_Term'|'WP_User'}.
PHP / PHP 8.0 / PHP / PHP 8.0: output/raw/db_queries.php#L98
Offset 'trace' on array{caller: array|null, caller_name: string|null, stack: array<string, mixed>, sql: string, ltime: float, result: bool|int|WP_Error, type: string, component: QM_Component|null, ...} in isset() always exists and is not nullable.
PHP / PHP 8.0 / PHP / PHP 8.0: output/raw/db_queries.php#L100
Cannot call method get_filtered_trace() on array<string, mixed>.
PHP / PHP 8.2 / PHP / PHP 8.2: classes/Collector_Assets.php#L231
Property QM_Data_Assets::$assets (array{missing: array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<string>, ...}>, broken: array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<string>, ...}>, header: array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<string>, ...}>, footer: array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<string>, ...}>}|null) does not accept array<'broken'|'footer'|'header'|'missing', non-empty-array<string, array{host: string, port: string, source: string|WP_Error, local: bool, ver: string, warning: bool, display: string, dependents: array<int, string>, ...}>>.
PHP / PHP 8.2 / PHP / PHP 8.2: classes/Util.php#L428
Method QM_Util::populate_callback() should return array{accepted_args: int, name?: string, file?: string|false, line?: int|false, error?: WP_Error, component?: QM_Component} but returns array<string, mixed>.
PHP / PHP 8.2 / PHP / PHP 8.2: collectors/db_queries.php#L229
Property QM_Data_DB_Queries::$rows (array<int, array{caller: array|null, caller_name: string|null, stack: array<string, mixed>, sql: string, ltime: float, result: bool|int|WP_Error, type: string, component: QM_Component|null, ...}>) does not accept non-empty-array<int, array{caller: array|null, caller_name: string|null, stack: array<string, mixed>, sql: string, ltime: float, result: bool|int|WP_Error, type: string, component: QM_Component|null, ...}|array{caller: mixed, caller_name: mixed, sql: string, ltime: float, result: bool|int|WP_Error|null, type: string, component: QM_Component|null, trace: QM_Backtrace|null, ...}>.
PHP / PHP 8.2 / PHP / PHP 8.2: collectors/languages.php#L176
Property QM_Data_Languages::$languages (array<string, array<string, array{caller: array<string, mixed>, domain: string, file: string|false, found: int|false, handle: string|null, type: 'gettext'|'jed'}>>) does not accept non-empty-array<string, array<string, array{caller: array|false, domain: string, file: string|false, found: int|false, handle: string|null, type: 'gettext'|'jed'}>>.
PHP / PHP 8.2 / PHP / PHP 8.2: collectors/languages.php#L208
Property QM_Data_Languages::$languages (array<string, array<string, array{caller: array<string, mixed>, domain: string, file: string|false, found: int|false, handle: string|null, type: 'gettext'|'jed'}>>) does not accept non-empty-array<string, array<string, array{caller: array|false, domain: string, file: string|false, found: int|false, handle: string|null, type: 'gettext'|'jed'}>>.
PHP / PHP 8.2 / PHP / PHP 8.2: collectors/request.php#L301
Property QM_Data_Request::$queried_object (array{title: string, data?: WP_Post|WP_Post_Type|WP_Term|WP_User, type?: 'WP_Post'|'WP_Post_Type'|'WP_Term'|'WP_User'}) does not accept array{title: string, data?: WP_Post|WP_Post_Type|WP_Term|WP_User, type: class-string<WP_Post>|class-string<WP_Post_Type>|class-string<WP_Term>|class-string<WP_User>}.
PHP / PHP 8.2 / PHP / PHP 8.2: output/html/request.php#L156
Property QM_Data_Request::$queried_object (array<string, string|WP_Post|WP_Post_Type|WP_Term|WP_User>) in empty() is not falsy.
PHP / PHP 8.2 / PHP / PHP 8.2: output/html/request.php#L157
Offset 'data' does not exist on array{title: string, data?: WP_Post|WP_Post_Type|WP_Term|WP_User, type?: 'WP_Post'|'WP_Post_Type'|'WP_Term'|'WP_User'}.
PHP / PHP 8.2 / PHP / PHP 8.2: output/raw/db_queries.php#L98
Offset 'trace' on array{caller: array|null, caller_name: string|null, stack: array<string, mixed>, sql: string, ltime: float, result: bool|int|WP_Error, type: string, component: QM_Component|null, ...} in isset() always exists and is not nullable.
PHP / PHP 8.2 / PHP / PHP 8.2: output/raw/db_queries.php#L100
Cannot call method get_filtered_trace() on array<string, mixed>.