Skip to content

Improve API result values #43

Improve API result values

Improve API result values #43

Triggered via pull request June 13, 2024 11:35
Status Failure
Total duration 50s
Artifacts

phpstan.yml

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

Annotations

43 errors and 3 warnings
PHPStan with PHP 8.1 prefer-lowest: CRM/Twingle/Page/Profiles.php#L31
Parameter #1 $attribute_name of method CRM_Twingle_Profile::getAttribute() expects string, bool|string given.
PHPStan with PHP 8.1 prefer-lowest: CRM/Twingle/Submission.php#L69
Parameter #2 $error_code of class CRM_Core_Exception constructor expects int, string given.
PHPStan with PHP 8.1 prefer-lowest: CRM/Twingle/Submission.php#L79
Parameter #2 $error_code of class CRM_Core_Exception constructor expects int, string given.
PHPStan with PHP 8.1 prefer-lowest: CRM/Twingle/Submission.php#L85
Parameter #2 $datetime of static method DateTime::createFromFormat() expects string, mixed given.
PHPStan with PHP 8.1 prefer-lowest: CRM/Twingle/Submission.php#L88
Parameter #2 $error_code of class CRM_Core_Exception constructor expects int, string given.
PHPStan with PHP 8.1 prefer-lowest: CRM/Twingle/Submission.php#L93
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.1 prefer-lowest: CRM/Twingle/Submission.php#L93
Parameter #2 $datetime of static method DateTime::createFromFormat() expects string, mixed given.
PHPStan with PHP 8.1 prefer-lowest: CRM/Twingle/Submission.php#L96
Parameter #2 $error_code of class CRM_Core_Exception constructor expects int, string given.
PHPStan with PHP 8.1 prefer-lowest: CRM/Twingle/Submission.php#L107
Parameter #2 $error_code of class CRM_Core_Exception constructor expects int, string given.
PHPStan with PHP 8.1 prefer-lowest: CRM/Twingle/Submission.php#L121
Parameter #2 $error_code of class CRM_Core_Exception constructor expects int, string given.
PHPStan with PHP 8.0 prefer-lowest: CRM/Twingle/Page/Profiles.php#L31
Parameter #1 $attribute_name of method CRM_Twingle_Profile::getAttribute() expects string, bool|string given.
PHPStan with PHP 8.0 prefer-lowest: CRM/Twingle/Submission.php#L69
Parameter #2 $error_code of class CRM_Core_Exception constructor expects int, string given.
PHPStan with PHP 8.0 prefer-lowest: CRM/Twingle/Submission.php#L79
Parameter #2 $error_code of class CRM_Core_Exception constructor expects int, string given.
PHPStan with PHP 8.0 prefer-lowest: CRM/Twingle/Submission.php#L85
Parameter #2 $datetime of static method DateTime::createFromFormat() expects string, mixed given.
PHPStan with PHP 8.0 prefer-lowest: CRM/Twingle/Submission.php#L88
Parameter #2 $error_code of class CRM_Core_Exception constructor expects int, string given.
PHPStan with PHP 8.0 prefer-lowest: CRM/Twingle/Submission.php#L93
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.0 prefer-lowest: CRM/Twingle/Submission.php#L93
Parameter #2 $datetime of static method DateTime::createFromFormat() expects string, mixed given.
PHPStan with PHP 8.0 prefer-lowest: CRM/Twingle/Submission.php#L96
Parameter #2 $error_code of class CRM_Core_Exception constructor expects int, string given.
PHPStan with PHP 8.0 prefer-lowest: CRM/Twingle/Submission.php#L107
Parameter #2 $error_code of class CRM_Core_Exception constructor expects int, string given.
PHPStan with PHP 8.0 prefer-lowest: CRM/Twingle/Submission.php#L121
Parameter #2 $error_code of class CRM_Core_Exception constructor expects int, string given.
PHPStan with PHP 8.0 prefer-stable
The job was canceled because "_8_0_prefer-lowest" failed.
PHPStan with PHP 8.0 prefer-stable: CRM/Twingle/Page/Profiles.php#L31
Parameter #1 $attribute_name of method CRM_Twingle_Profile::getAttribute() expects string, bool|string given.
PHPStan with PHP 8.0 prefer-stable: CRM/Twingle/Submission.php#L85
Parameter #2 $datetime of static method DateTime::createFromFormat() expects string, mixed given.
PHPStan with PHP 8.0 prefer-stable: CRM/Twingle/Submission.php#L93
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.0 prefer-stable: CRM/Twingle/Submission.php#L93
Parameter #2 $datetime of static method DateTime::createFromFormat() expects string, mixed given.
PHPStan with PHP 8.0 prefer-stable: CRM/Twingle/Submission.php#L140
Function civicrm_api3 not found.
PHPStan with PHP 8.0 prefer-stable: CRM/Twingle/Submission.php#L200
Function civicrm_api3 not found.
PHPStan with PHP 8.0 prefer-stable: CRM/Twingle/Submission.php#L224
Function civicrm_api3 not found.
PHPStan with PHP 8.0 prefer-stable: CRM/Twingle/Submission.php#L245
Method CRM_Twingle_Submission::shareWorkAddress() has CRM_Core_Exception in PHPDoc @throws tag but it's not thrown.
PHPStan with PHP 8.0 prefer-stable: CRM/Twingle/Submission.php#L251
Function civicrm_api3 not found.
PHPStan with PHP 8.0 prefer-stable: CRM/Twingle/Submission.php#L261
Function civicrm_api3 not found.
PHPStan with PHP 7.4 prefer-stable
The job was canceled because "_8_0_prefer-lowest" failed.
PHPStan with PHP 8.1 prefer-stable
The job was canceled because "_8_0_prefer-lowest" failed.
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Page/Profiles.php#L31
Parameter #1 $attribute_name of method CRM_Twingle_Profile::getAttribute() expects string, bool|string given.
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Submission.php#L85
Parameter #2 $datetime of static method DateTime::createFromFormat() expects string, mixed given.
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Submission.php#L93
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Submission.php#L93
Parameter #2 $datetime of static method DateTime::createFromFormat() expects string, mixed given.
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Submission.php#L140
Function civicrm_api3 not found.
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Submission.php#L200
Function civicrm_api3 not found.
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Submission.php#L224
Function civicrm_api3 not found.
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Submission.php#L245
Method CRM_Twingle_Submission::shareWorkAddress() has CRM_Core_Exception in PHPDoc @throws tag but it's not thrown.
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Submission.php#L251
Function civicrm_api3 not found.
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Submission.php#L261
Function civicrm_api3 not found.
PHPStan with PHP 7.4 prefer-lowest
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHPStan with PHP 8.1 prefer-lowest
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHPStan with PHP 8.0 prefer-lowest
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.