Improve code quality #5
Annotations
60 errors and 6 warnings
PHPStan with PHP 8.3 prefer-stable:
Civi/Hiorg/Api4/Action/AbstractHiorgApiAction.php#L78
Construct empty() is not allowed. Use more strict comparison.
|
PHPStan with PHP 8.3 prefer-stable:
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.
|
PHPStan with PHP 8.3 prefer-stable:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L111
Construct empty() is not allowed. Use more strict comparison.
|
PHPStan with PHP 8.3 prefer-stable:
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.
|
PHPStan with PHP 8.3 prefer-stable:
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.
|
PHPStan with PHP 8.3 prefer-stable:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L152
Call to static method get() on an unknown class Civi\Api4\ConfigProfile.
|
PHPStan with PHP 8.3 prefer-stable:
Civi/Hiorg/Api4/Action/GetAusbildungenApiAction.php#L42
Cannot call method getAusbildungen() on Civi\Hiorg\HiorgApi\HiorgClient|null.
|
PHPStan with PHP 8.3 prefer-stable:
Civi/Hiorg/Api4/Action/GetAusbildungenApiAction.php#L44
Only booleans are allowed in a ternary operator condition, string|null given.
|
PHPStan with PHP 8.3 prefer-stable:
Civi/Hiorg/Api4/Action/GetHelferstundenApiAction.php#L90
Cannot call method getHelferstunden() on Civi\Hiorg\HiorgApi\HiorgClient|null.
|
PHPStan with PHP 8.3 prefer-stable:
Civi/Hiorg/Api4/Action/GetHelferstundenApiAction.php#L95
Only booleans are allowed in a ternary operator condition, string|null given.
|
PHPStan with PHP 8.0 prefer-lowest:
Civi/Hiorg/Api4/Action/AbstractHiorgApiAction.php#L78
Construct empty() is not allowed. Use more strict comparison.
|
PHPStan with PHP 8.0 prefer-lowest:
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.
|
PHPStan with PHP 8.0 prefer-lowest:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L111
Construct empty() is not allowed. Use more strict comparison.
|
PHPStan with PHP 8.0 prefer-stable:
Civi/Hiorg/Api4/Action/AbstractHiorgApiAction.php#L78
Construct empty() is not allowed. Use more strict comparison.
|
PHPStan with PHP 8.0 prefer-lowest:
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.
|
PHPStan with PHP 8.0 prefer-stable:
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.
|
PHPStan with PHP 8.0 prefer-lowest:
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.
|
PHPStan with PHP 8.0 prefer-stable:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L111
Construct empty() is not allowed. Use more strict comparison.
|
PHPStan with PHP 8.0 prefer-lowest:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L152
Call to static method get() on an unknown class Civi\Api4\ConfigProfile.
|
PHPStan with PHP 8.0 prefer-stable:
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.
|
PHPStan with PHP 8.0 prefer-lowest:
Civi/Hiorg/Api4/Action/GetAusbildungenApiAction.php#L42
Cannot call method getAusbildungen() on Civi\Hiorg\HiorgApi\HiorgClient|null.
|
PHPStan with PHP 8.0 prefer-stable:
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.
|
PHPStan with PHP 8.0 prefer-lowest:
Civi/Hiorg/Api4/Action/GetAusbildungenApiAction.php#L44
Only booleans are allowed in a ternary operator condition, string|null given.
|
PHPStan with PHP 8.0 prefer-stable:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L152
Call to static method get() on an unknown class Civi\Api4\ConfigProfile.
|
PHPStan with PHP 8.0 prefer-stable:
Civi/Hiorg/Api4/Action/GetAusbildungenApiAction.php#L42
Cannot call method getAusbildungen() on Civi\Hiorg\HiorgApi\HiorgClient|null.
|
PHPStan with PHP 8.0 prefer-lowest:
Civi/Hiorg/Api4/Action/GetHelferstundenApiAction.php#L90
Cannot call method getHelferstunden() on Civi\Hiorg\HiorgApi\HiorgClient|null.
|
PHPStan with PHP 8.0 prefer-stable:
Civi/Hiorg/Api4/Action/GetAusbildungenApiAction.php#L44
Only booleans are allowed in a ternary operator condition, string|null given.
|
PHPStan with PHP 8.0 prefer-lowest:
Civi/Hiorg/Api4/Action/GetHelferstundenApiAction.php#L95
Only booleans are allowed in a ternary operator condition, string|null given.
|
PHPStan with PHP 8.0 prefer-stable:
Civi/Hiorg/Api4/Action/GetHelferstundenApiAction.php#L90
Cannot call method getHelferstunden() on Civi\Hiorg\HiorgApi\HiorgClient|null.
|
PHPStan with PHP 8.0 prefer-stable:
Civi/Hiorg/Api4/Action/GetHelferstundenApiAction.php#L95
Only booleans are allowed in a ternary operator condition, string|null given.
|
PHPStan with PHP 7.4 prefer-stable:
Civi/Hiorg/Api4/Action/AbstractHiorgApiAction.php#L78
Construct empty() is not allowed. Use more strict comparison.
|
PHPStan with PHP 7.4 prefer-stable:
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.
|
PHPStan with PHP 7.4 prefer-stable:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L111
Construct empty() is not allowed. Use more strict comparison.
|
PHPStan with PHP 7.4 prefer-stable:
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.
|
PHPStan with PHP 7.4 prefer-stable:
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.
|
PHPStan with PHP 7.4 prefer-stable:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L152
Call to static method get() on an unknown class Civi\Api4\ConfigProfile.
|
PHPStan with PHP 7.4 prefer-stable:
Civi/Hiorg/Api4/Action/GetAusbildungenApiAction.php#L42
Cannot call method getAusbildungen() on Civi\Hiorg\HiorgApi\HiorgClient|null.
|
PHPStan with PHP 7.4 prefer-stable:
Civi/Hiorg/Api4/Action/GetAusbildungenApiAction.php#L44
Only booleans are allowed in a ternary operator condition, string|null given.
|
PHPStan with PHP 7.4 prefer-stable:
Civi/Hiorg/Api4/Action/GetHelferstundenApiAction.php#L90
Cannot call method getHelferstunden() on Civi\Hiorg\HiorgApi\HiorgClient|null.
|
PHPStan with PHP 7.4 prefer-stable:
Civi/Hiorg/Api4/Action/GetHelferstundenApiAction.php#L95
Only booleans are allowed in a ternary operator condition, string|null given.
|
PHPStan with PHP 8.3 prefer-lowest:
Civi/Hiorg/Api4/Action/AbstractHiorgApiAction.php#L78
Construct empty() is not allowed. Use more strict comparison.
|
PHPStan with PHP 8.3 prefer-lowest:
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.
|
PHPStan with PHP 8.3 prefer-lowest:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L111
Construct empty() is not allowed. Use more strict comparison.
|
PHPStan with PHP 8.3 prefer-lowest:
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.
|
PHPStan with PHP 8.3 prefer-lowest:
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.
|
PHPStan with PHP 8.3 prefer-lowest:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L152
Call to static method get() on an unknown class Civi\Api4\ConfigProfile.
|
PHPStan with PHP 8.3 prefer-lowest:
Civi/Hiorg/Api4/Action/GetAusbildungenApiAction.php#L42
Cannot call method getAusbildungen() on Civi\Hiorg\HiorgApi\HiorgClient|null.
|
PHPStan with PHP 8.3 prefer-lowest:
Civi/Hiorg/Api4/Action/GetAusbildungenApiAction.php#L44
Only booleans are allowed in a ternary operator condition, string|null given.
|
PHPStan with PHP 8.3 prefer-lowest:
Civi/Hiorg/Api4/Action/GetHelferstundenApiAction.php#L90
Cannot call method getHelferstunden() on Civi\Hiorg\HiorgApi\HiorgClient|null.
|
PHPStan with PHP 8.3 prefer-lowest:
Civi/Hiorg/Api4/Action/GetHelferstundenApiAction.php#L95
Only booleans are allowed in a ternary operator condition, string|null given.
|
PHPStan with PHP 7.4 prefer-lowest:
Civi/Hiorg/Api4/Action/AbstractHiorgApiAction.php#L78
Construct empty() is not allowed. Use more strict comparison.
|
PHPStan with PHP 7.4 prefer-lowest:
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.
|
PHPStan with PHP 7.4 prefer-lowest:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L111
Construct empty() is not allowed. Use more strict comparison.
|
PHPStan with PHP 7.4 prefer-lowest:
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.
|
PHPStan with PHP 7.4 prefer-lowest:
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.
|
PHPStan with PHP 7.4 prefer-lowest:
Civi/Hiorg/Api4/Action/AbstractSynchronizeAction.php#L152
Call to static method get() on an unknown class Civi\Api4\ConfigProfile.
|
PHPStan with PHP 7.4 prefer-lowest:
Civi/Hiorg/Api4/Action/GetAusbildungenApiAction.php#L42
Cannot call method getAusbildungen() on Civi\Hiorg\HiorgApi\HiorgClient|null.
|
PHPStan with PHP 7.4 prefer-lowest:
Civi/Hiorg/Api4/Action/GetAusbildungenApiAction.php#L44
Only booleans are allowed in a ternary operator condition, string|null given.
|
PHPStan with PHP 7.4 prefer-lowest:
Civi/Hiorg/Api4/Action/GetHelferstundenApiAction.php#L90
Cannot call method getHelferstunden() on Civi\Hiorg\HiorgApi\HiorgClient|null.
|
PHPStan with PHP 7.4 prefer-lowest:
Civi/Hiorg/Api4/Action/GetHelferstundenApiAction.php#L95
Only booleans are allowed in a ternary operator condition, string|null given.
|
PHPStan with PHP 8.3 prefer-stable
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHPStan with PHP 8.0 prefer-lowest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHPStan with PHP 8.0 prefer-stable
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHPStan with PHP 7.4 prefer-stable
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHPStan with PHP 8.3 prefer-lowest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHPStan with PHP 7.4 prefer-lowest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|