Skip to content

Back to 1.0-dev

Back to 1.0-dev #131

Triggered via push September 10, 2024 08:46
Status Failure
Total duration 1m 5s
Artifacts

phpstan.yml

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

Annotations

64 errors and 2 warnings
PHPStan with PHP 7.4 prefer-stable: CRM/Eck/BAO/EckEntityType.php#L52
Method CRM_Eck_BAO_EckEntityType::getEntityTypes() should return array<string, array<string, string>> but returns array|false.
PHPStan with PHP 7.4 prefer-stable: CRM/Eck/BAO/Entity.php#L25
Method CRM_Eck_BAO_Entity::getEntityType() should return string|null but returns string|false|null.
PHPStan with PHP 7.4 prefer-stable: CRM/Eck/Page/Entity/View.php#L88
Call to deprecated method getTree() of class CRM_Core_BAO_CustomGroup: Function demonstrates just how bad code can get from 20 years of entropy.
PHPStan with PHP 7.4 prefer-stable: Civi/Api4/EckEntity.php#L128
Method Civi\Api4\EckEntity::getLinks() has parameter $checkPermissions with no type specified.
PHPStan with PHP 7.4 prefer-stable: Civi/Api4/EckEntity.php#L136
Method Civi\Api4\EckEntity::getLinks() should return Civi\Api4\Action\GetLinks but returns Civi\Api4\Generic\BasicGetAction.
PHPStan with PHP 7.4 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L50
Method Civi\Api4\Service\Spec\Provider\EckEntitySpecProvider::arrayToField() has parameter $data with no value type specified in iterable type array.
PHPStan with PHP 7.4 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L59
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 7.4 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L60
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 7.4 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L64
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 7.4 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L67
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.2 prefer-stable: CRM/Eck/Page/Entity/View.php#L88
Call to deprecated method getTree() of class CRM_Core_BAO_CustomGroup: Function demonstrates just how bad code can get from 20 years of entropy.
PHPStan with PHP 8.2 prefer-stable: Civi/Api4/EckEntity.php#L128
Method Civi\Api4\EckEntity::getLinks() has parameter $checkPermissions with no type specified.
PHPStan with PHP 8.2 prefer-stable: Civi/Api4/EckEntity.php#L136
Method Civi\Api4\EckEntity::getLinks() should return Civi\Api4\Action\GetLinks but returns Civi\Api4\Generic\BasicGetAction.
PHPStan with PHP 8.2 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L50
Method Civi\Api4\Service\Spec\Provider\EckEntitySpecProvider::arrayToField() has parameter $data with no value type specified in iterable type array.
PHPStan with PHP 8.2 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L59
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.2 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L60
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.2 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L64
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.2 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L67
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.2 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L70
Parameter #1 $callback of method Civi\Api4\Service\Spec\FieldSpec::setOptionsCallback() expects callable(): mixed, array{'Civi\\Api4\\Service\\Spec\\Provider\\EckEntitySpecProvider', 'getOptions'} given.
PHPStan with PHP 8.2 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L73
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.0 prefer-lowest
The job was canceled because "_7_4_prefer-stable" failed.
PHPStan with PHP 8.0 prefer-lowest: Civi/Api4/EckEntity.php#L128
Method Civi\Api4\EckEntity::getLinks() has invalid return type Civi\Api4\Action\GetLinks.
PHPStan with PHP 8.0 prefer-lowest: Civi/Api4/EckEntity.php#L128
Method Civi\Api4\EckEntity::getLinks() has parameter $checkPermissions with no type specified.
PHPStan with PHP 8.0 prefer-lowest: Civi/Api4/EckEntity.php#L136
Method Civi\Api4\EckEntity::getLinks() should return Civi\Api4\Action\GetLinks but returns Civi\Api4\Generic\BasicGetAction.
PHPStan with PHP 8.0 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L50
Method Civi\Api4\Service\Spec\Provider\EckEntitySpecProvider::arrayToField() has parameter $data with no value type specified in iterable type array.
PHPStan with PHP 8.0 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L59
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.0 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L60
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.0 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L64
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.0 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L67
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.0 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L70
Parameter #1 $callback of method Civi\Api4\Service\Spec\FieldSpec::setOptionsCallback() expects callable(): mixed, array{'Civi\\Api4\\Service\\Spec\\Provider\\EckEntitySpecProvider', 'getOptions'} given.
PHPStan with PHP 8.0 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L73
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.2 prefer-lowest
The job was canceled because "_7_4_prefer-stable" failed.
PHPStan with PHP 8.2 prefer-lowest: Civi/Api4/EckEntity.php#L128
Method Civi\Api4\EckEntity::getLinks() has invalid return type Civi\Api4\Action\GetLinks.
PHPStan with PHP 8.2 prefer-lowest: Civi/Api4/EckEntity.php#L128
Method Civi\Api4\EckEntity::getLinks() has parameter $checkPermissions with no type specified.
PHPStan with PHP 8.2 prefer-lowest: Civi/Api4/EckEntity.php#L136
Method Civi\Api4\EckEntity::getLinks() should return Civi\Api4\Action\GetLinks but returns Civi\Api4\Generic\BasicGetAction.
PHPStan with PHP 8.2 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L50
Method Civi\Api4\Service\Spec\Provider\EckEntitySpecProvider::arrayToField() has parameter $data with no value type specified in iterable type array.
PHPStan with PHP 8.2 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L59
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.2 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L60
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.2 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L64
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.2 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L67
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.2 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L70
Parameter #1 $callback of method Civi\Api4\Service\Spec\FieldSpec::setOptionsCallback() expects callable(): mixed, array{'Civi\\Api4\\Service\\Spec\\Provider\\EckEntitySpecProvider', 'getOptions'} given.
PHPStan with PHP 8.2 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L73
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 7.4 prefer-lowest
The job was canceled because "_7_4_prefer-stable" failed.
PHPStan with PHP 7.4 prefer-lowest: CRM/Eck/BAO/EckEntityType.php#L52
Method CRM_Eck_BAO_EckEntityType::getEntityTypes() should return array<string, array<string, string>> but returns array|false.
PHPStan with PHP 7.4 prefer-lowest: CRM/Eck/BAO/Entity.php#L25
Method CRM_Eck_BAO_Entity::getEntityType() should return string|null but returns string|false|null.
PHPStan with PHP 7.4 prefer-lowest: Civi/Api4/EckEntity.php#L128
Method Civi\Api4\EckEntity::getLinks() has invalid return type Civi\Api4\Action\GetLinks.
PHPStan with PHP 7.4 prefer-lowest: Civi/Api4/EckEntity.php#L128
Method Civi\Api4\EckEntity::getLinks() has parameter $checkPermissions with no type specified.
PHPStan with PHP 7.4 prefer-lowest: Civi/Api4/EckEntity.php#L136
Method Civi\Api4\EckEntity::getLinks() should return Civi\Api4\Action\GetLinks but returns Civi\Api4\Generic\BasicGetAction.
PHPStan with PHP 7.4 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L50
Method Civi\Api4\Service\Spec\Provider\EckEntitySpecProvider::arrayToField() has parameter $data with no value type specified in iterable type array.
PHPStan with PHP 7.4 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L59
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 7.4 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L60
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 7.4 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L64
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 7.4 prefer-lowest: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L67
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.0 prefer-stable
The job was canceled because "_7_4_prefer-stable" failed.
PHPStan with PHP 8.0 prefer-stable: CRM/Eck/Page/Entity/View.php#L88
Call to deprecated method getTree() of class CRM_Core_BAO_CustomGroup: Function demonstrates just how bad code can get from 20 years of entropy.
PHPStan with PHP 8.0 prefer-stable: Civi/Api4/EckEntity.php#L128
Method Civi\Api4\EckEntity::getLinks() has parameter $checkPermissions with no type specified.
PHPStan with PHP 8.0 prefer-stable: Civi/Api4/EckEntity.php#L136
Method Civi\Api4\EckEntity::getLinks() should return Civi\Api4\Action\GetLinks but returns Civi\Api4\Generic\BasicGetAction.
PHPStan with PHP 8.0 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L50
Method Civi\Api4\Service\Spec\Provider\EckEntitySpecProvider::arrayToField() has parameter $data with no value type specified in iterable type array.
PHPStan with PHP 8.0 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L59
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.0 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L60
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.0 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L64
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.0 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L67
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 8.0 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L70
Parameter #1 $callback of method Civi\Api4\Service\Spec\FieldSpec::setOptionsCallback() expects callable(): mixed, array{'Civi\\Api4\\Service\\Spec\\Provider\\EckEntitySpecProvider', 'getOptions'} given.
PHPStan with PHP 8.0 prefer-stable: Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php#L73
Construct empty() is not allowed. Use more strict comparison.
PHPStan with PHP 7.4 prefer-stable
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHPStan with PHP 8.2 prefer-stable
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/