Improve code quality #4
Annotations
11 errors
|
Run PHPStan:
Civi/Hiorg/Api4/Action/AbstractHiorgApiAction.php#L79
Construct empty() is not allowed. Use more strict comparison.
|
Run PHPStan:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L68
Parameter #2 $params of static method Civi::queue() expects array{type: string, is_autorun: bool, reset: bool, is_persistent: bool}, array{type: 'Sql', reset: false} given.
|
Run PHPStan:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L111
Construct empty() is not allowed. Use more strict comparison.
|
Run PHPStan:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L151
Method Civi\Hiorg\Api4\Action\AbstractSynchronizeAction::getConfigProfiles() has CRM_Core_Exception in PHPDoc @throws tag but it's not thrown.
|
Run PHPStan:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L151
Method Civi\Hiorg\Api4\Action\AbstractSynchronizeAction::getConfigProfiles() return type has no value type specified in iterable type array.
|
Run PHPStan:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L152
Call to static method get() on an unknown class Civi\Api4\ConfigProfile.
|
Run PHPStan:
Civi/Hiorg/Api4/Action/GetAusbildungenApiAction.php#L44
Cannot call method getAusbildungen() on Civi\Hiorg\HiorgApi\HiorgClient|null.
|
Run PHPStan:
Civi/Hiorg/Api4/Action/GetAusbildungenApiAction.php#L46
Only booleans are allowed in a ternary operator condition, string|null given.
|
Run PHPStan:
Civi/Hiorg/Api4/Action/GetHelferstundenApiAction.php#L90
Cannot call method getHelferstunden() on Civi\Hiorg\HiorgApi\HiorgClient|null.
|
Run PHPStan:
Civi/Hiorg/Api4/Action/GetHelferstundenApiAction.php#L95
Only booleans are allowed in a ternary operator condition, string|null given.
|
Loading