Skip to content

Improve the handling of organisations #21

Improve the handling of organisations

Improve the handling of organisations #21

Triggered via pull request May 6, 2024 13:26
Status Failure
Total duration 1m 8s
Artifacts

phpstan.yml

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

Annotations

29 errors and 1 warning
PHPStan with PHP 7.4 prefer-lowest: CRM/Twingle/Form/Profile.php#L152
Parameter #1 $id of static method CRM_Twingle_Profile::getProfile() expects int|null, mixed given.
PHPStan with PHP 7.4 prefer-lowest: CRM/Twingle/Form/Profile.php#L220
Caught class Civi\Core\Exception\DBQueryException not found.
PHPStan with PHP 7.4 prefer-lowest: CRM/Twingle/Form/Profile.php#L221
Call to method getMessage() on an unknown class Civi\Core\Exception\DBQueryException.
PHPStan with PHP 7.4 prefer-lowest: CRM/Twingle/Form/Profile.php#L523
Call to an undefined method CRM_Twingle_Form_Profile::exportValues().
PHPStan with PHP 7.4 prefer-lowest: CRM/Twingle/Form/Profile.php#L537
Call to an undefined method CRM_Twingle_Form_Profile::setElementError().
PHPStan with PHP 7.4 prefer-lowest: CRM/Twingle/Form/Profile.php#L574
Cannot access offset 'required' on bool|string.
PHPStan with PHP 7.4 prefer-lowest: CRM/Twingle/Form/Profile.php#L586
Method CRM_Twingle_Form_Profile::setDefaultValues() should return array<string, mixed> but returns array|null.
PHPStan with PHP 7.4 prefer-lowest: CRM/Twingle/Form/Profile.php#L593
Call to an undefined method CRM_Twingle_Form_Profile::exportValues().
PHPStan with PHP 7.4 prefer-lowest: CRM/Twingle/Form/Profile.php#L641
Function civicrm_api3 not found.
PHPStan with PHP 7.4 prefer-lowest: CRM/Twingle/Form/Profile.php#L646
Static property CRM_Twingle_Form_Profile::$_locationTypes (array<string, string>) does not accept array<int|string, string>.
PHPStan with PHP 8.1 prefer-stable
The job was canceled because "_7_4_prefer-lowest" failed.
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Form/Profile.php#L151
Property CRM_Twingle_Form_Profile::$profile_id (int|null) does not accept mixed.
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Form/Profile.php#L152
Parameter #1 $id of static method CRM_Twingle_Profile::getProfile() expects int|null, mixed given.
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Form/Profile.php#L250
Cannot call method is_default() on CRM_Twingle_Profile|null.
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Form/Profile.php#L466
Call to an undefined method CRM_Twingle_Form_Profile::addRule().
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Form/Profile.php#L523
Call to an undefined method CRM_Twingle_Form_Profile::exportValues().
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Form/Profile.php#L537
Call to an undefined method CRM_Twingle_Form_Profile::setElementError().
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Form/Profile.php#L574
Cannot access offset 'required' on bool|string.
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Form/Profile.php#L593
Call to an undefined method CRM_Twingle_Form_Profile::exportValues().
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Form/Profile.php#L641
Function civicrm_api3 not found.
PHPStan with PHP 8.1 prefer-stable: CRM/Twingle/Form/Profile.php#L646
Static property CRM_Twingle_Form_Profile::$_locationTypes (array<string, string>) does not accept array<int|string, string>.
PHPStan with PHP 8.1 prefer-lowest
The job was canceled because "_7_4_prefer-lowest" failed.
PHPStan with PHP 8.1 prefer-lowest
The operation was canceled.
PHPStan with PHP 8.0 prefer-stable
The job was canceled because "_7_4_prefer-lowest" failed.
PHPStan with PHP 8.0 prefer-stable
The operation was canceled.
PHPStan with PHP 8.0 prefer-lowest
The job was canceled because "_7_4_prefer-lowest" failed.
PHPStan with PHP 8.0 prefer-lowest
The operation was canceled.
PHPStan with PHP 7.4 prefer-stable
The job was canceled because "_7_4_prefer-lowest" failed.
PHPStan with PHP 7.4 prefer-stable
The operation was canceled.
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/.