Improve profile validation #10
Annotations
10 errors and 1 warning
Run PHPStan:
CRM/Twingle/Form/Profile.php#L152
Parameter #1 $id of static method CRM_Twingle_Profile::getProfile() expects int|null, mixed given.
|
Run PHPStan:
CRM/Twingle/Form/Profile.php#L195
Cannot call method copy() on CRM_Twingle_Profile|null.
|
Run PHPStan:
CRM/Twingle/Form/Profile.php#L214
Caught class Civi\Core\Exception\DBQueryException not found.
|
Run PHPStan:
CRM/Twingle/Form/Profile.php#L215
Call to method getMessage() on an unknown class Civi\Core\Exception\DBQueryException.
|
Run PHPStan:
CRM/Twingle/Form/Profile.php#L229
Cannot call method getName() on CRM_Twingle_Profile|null.
|
Run PHPStan:
CRM/Twingle/Form/Profile.php#L568
Call to an undefined method CRM_Twingle_Form_Profile::exportValues().
|
Run PHPStan:
CRM/Twingle/Form/Profile.php#L582
Call to an undefined method CRM_Twingle_Form_Profile::setElementError().
|
Run PHPStan:
CRM/Twingle/Form/Profile.php#L601
Call to function in_array() requires parameter #3 to be set.
|
Run PHPStan:
CRM/Twingle/Form/Profile.php#L602
Only booleans are allowed in a negated boolean, CRM_Twingle_Profile|null given.
|
Run PHPStan:
CRM/Twingle/Form/Profile.php#L615
Method CRM_Twingle_Form_Profile::setDefaultValues() should return array<string, mixed> but returns array|null.
|
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/.
|
Loading