Skip to content

Merge pull request #16 from atarime/remove-unnecessary-function-args #3

Merge pull request #16 from atarime/remove-unnecessary-function-args

Merge pull request #16 from atarime/remove-unnecessary-function-args #3

Triggered via push November 21, 2024 09:43
Status Success
Total duration 50s
Artifacts

phpstan.yml

on: push
Matrix: Run PHPStan
Fit to window
Zoom out
Zoom in

Annotations

30 errors and 3 warnings
Run PHPStan (0): admin/class-admin.php#L26
Callback expects 1 parameter, $accepted_args is set to 2.
Run PHPStan (0): admin/class-admin.php#L28
Callback expects 1 parameter, $accepted_args is set to 2.
Run PHPStan (0): admin/class-admin.php#L159
Instantiated class Emic\FMPress\Connect\Admin not found.
Run PHPStan (0): admin/class-datasources.php#L50
Action callback returns string|null but should not return anything.
Run PHPStan (0): admin/class-datasources.php#L53
Action callback returns array but should not return anything.
Run PHPStan (0): admin/class-datasources.php#L514
is_wp_error(array|Emic\FMPress\Connect\WP_Error) will always evaluate to false.
Run PHPStan (0): fmpress-forms.php#L83
Action callback returns bool but should not return anything.
Run PHPStan (0): includes/class-fm-value-list.php#L74
Access to an undefined property Emic\FMPress\Forms\Fm_Value_List::$datasource_id.
Run PHPStan (0): includes/class-fm-value-list.php#L75
Access to an undefined property Emic\FMPress\Forms\Fm_Value_List::$datasource.
Run PHPStan (0): includes/class-forms.php#L119
Instantiated class Emic\FMPress\Forms\Update_Form not found.
Run PHPStan (2): admin/class-admin.php#L26
Callback expects 1 parameter, $accepted_args is set to 2.
Run PHPStan (2): admin/class-admin.php#L28
Callback expects 1 parameter, $accepted_args is set to 2.
Run PHPStan (2): admin/class-admin.php#L73
Parameter $contact_form of method Emic\FMPress\Forms\Admin::generate_fmpress_settings() has invalid type Emic\FMPress\Forms\WPCF7_ContactForm.
Run PHPStan (2): admin/class-admin.php#L159
Instantiated class Emic\FMPress\Connect\Admin not found.
Run PHPStan (2): admin/class-admin.php#L162
Call to method add_tabpanel_datasource() on an unknown class Emic\FMPress\Connect\Admin.
Run PHPStan (2): admin/class-admin.php#L228
Constant FMPRESS_CONNECT_NAMEPREFIX not found.
Run PHPStan (2): admin/class-admin.php#L240
Parameter $contact_form of method Emic\FMPress\Forms\Admin::assign_fields_section() has invalid type Emic\FMPress\Forms\WPCF7_ContactForm.
Run PHPStan (2): admin/class-admin.php#L247
Call to method collect_mail_tags() on an unknown class Emic\FMPress\Forms\WPCF7_ContactForm.
Run PHPStan (2): admin/class-admin.php#L290
Parameter $contact_form of method Emic\FMPress\Forms\Admin::save_fmpress_settings() has invalid type Emic\FMPress\Forms\WPCF7_ContactForm.
Run PHPStan (2): admin/class-admin.php#L296
Call to method scan_form_tags() on an unknown class Emic\FMPress\Forms\WPCF7_ContactForm.
Run PHPStan (1): admin/class-admin.php#L26
Callback expects 1 parameter, $accepted_args is set to 2.
Run PHPStan (1): admin/class-admin.php#L28
Callback expects 1 parameter, $accepted_args is set to 2.
Run PHPStan (1): admin/class-admin.php#L159
Instantiated class Emic\FMPress\Connect\Admin not found.
Run PHPStan (1): admin/class-admin.php#L228
Constant FMPRESS_CONNECT_NAMEPREFIX not found.
Run PHPStan (1): admin/class-datasources.php#L50
Action callback returns string|null but should not return anything.
Run PHPStan (1): admin/class-datasources.php#L53
Action callback returns array but should not return anything.
Run PHPStan (1): admin/class-datasources.php#L164
Constant FMPRESS_CONNECT_NAMEPREFIX not found.
Run PHPStan (1): admin/class-datasources.php#L179
Constant FMPRESS_CONNECT_NAMEPREFIX not found.
Run PHPStan (1): admin/class-datasources.php#L180
Constant FMPRESS_CONNECT_NAMEPREFIX not found.
Run PHPStan (1): admin/class-datasources.php#L192
Constant FMPRESS_CONNECT_NAMEPREFIX not found.
Run PHPStan (0)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9, shivammathur/setup-php@72ae4ccbe57f82bbe08411e84e2130bd4ba1c10f. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Run PHPStan (2)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9, shivammathur/setup-php@72ae4ccbe57f82bbe08411e84e2130bd4ba1c10f. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Run PHPStan (1)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9, shivammathur/setup-php@72ae4ccbe57f82bbe08411e84e2130bd4ba1c10f. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/