Skip to content

Add compatibility rule to PHP Code Sniffer configuration #87

Add compatibility rule to PHP Code Sniffer configuration

Add compatibility rule to PHP Code Sniffer configuration #87

Triggered via push April 25, 2024 08:26
Status Failure
Total duration 1m 1s
Artifacts

phpstan.yml

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

Annotations

47 errors and 1 warning
PHPStan with PHP 7.4 prefer-stable: CRM/Eck/BAO/EckEntityType.php#L33
Call to an undefined method object::fetchAll().
PHPStan with PHP 7.4 prefer-stable: CRM/Eck/BAO/EckEntityType.php#L37
Offset 'name' does not exist on array{entity_name: non-falsy-string}.
PHPStan with PHP 7.4 prefer-stable: CRM/Eck/BAO/EckEntityType.php#L49
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/EckEntityType.php#L112
Method CRM_Eck_BAO_EckEntityType::getCustomGroups() should return array<int, array<string, mixed>> but returns array.
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/Form/EckSubtype.php#L29
Property CRM_Eck_Form_EckSubtype::$_subType type has no value type specified in iterable type array.
PHPStan with PHP 7.4 prefer-stable: CRM/Eck/Form/EckSubtype.php#L31
Property CRM_Eck_Form_EckSubtype::$_customGroups type has no value type specified in iterable type array.
PHPStan with PHP 7.4 prefer-stable: CRM/Eck/Form/EckSubtype.php#L36
Method CRM_Eck_Form_EckSubtype::preProcess() has no return type specified.
PHPStan with PHP 7.4 prefer-stable: CRM/Eck/Form/EckSubtype.php#L37
Parameter #1 $action of method CRM_Core_Form::setAction() expects int, mixed given.
PHPStan with PHP 7.4 prefer-stable: CRM/Eck/Form/EckSubtype.php#L41
Only booleans are allowed in a negated boolean, mixed given.
PHPStan with PHP 7.4 prefer-lowest
The job was canceled because "_7_4_prefer-stable" failed.
PHPStan with PHP 7.4 prefer-lowest
The operation was canceled.
PHPStan with PHP 8.2 prefer-lowest
The job was canceled because "_7_4_prefer-stable" failed.
PHPStan with PHP 8.2 prefer-lowest: CRM/Eck/BAO/EckEntityType.php#L33
Call to an undefined method object::fetchAll().
PHPStan with PHP 8.2 prefer-lowest: CRM/Eck/BAO/EckEntityType.php#L37
Offset 'name' does not exist on array{entity_name: non-falsy-string}.
PHPStan with PHP 8.2 prefer-lowest: CRM/Eck/BAO/EckEntityType.php#L112
Method CRM_Eck_BAO_EckEntityType::getCustomGroups() should return array<int, array<string, mixed>> but returns array.
PHPStan with PHP 8.2 prefer-lowest: CRM/Eck/Form/EckSubtype.php#L29
Property CRM_Eck_Form_EckSubtype::$_subType type has no value type specified in iterable type array.
PHPStan with PHP 8.2 prefer-lowest: CRM/Eck/Form/EckSubtype.php#L31
Property CRM_Eck_Form_EckSubtype::$_customGroups type has no value type specified in iterable type array.
PHPStan with PHP 8.2 prefer-lowest: CRM/Eck/Form/EckSubtype.php#L36
Method CRM_Eck_Form_EckSubtype::preProcess() has no return type specified.
PHPStan with PHP 8.2 prefer-lowest: CRM/Eck/Form/EckSubtype.php#L37
Parameter #1 $action of method CRM_Core_Form::setAction() expects int, mixed given.
PHPStan with PHP 8.2 prefer-lowest: CRM/Eck/Form/EckSubtype.php#L41
Only booleans are allowed in a negated boolean, mixed given.
PHPStan with PHP 8.2 prefer-lowest: CRM/Eck/Form/EckSubtype.php#L41
Property CRM_Eck_Form_EckSubtype::$_entityType (string|null) does not accept mixed.
PHPStan with PHP 8.2 prefer-lowest: CRM/Eck/Form/EckSubtype.php#L42
Do not throw the \Exception base class. Instead, extend the \Exception base class. More info: http://bit.ly/subtypeexception
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/BAO/EckEntityType.php#L33
Call to an undefined method object::fetchAll().
PHPStan with PHP 8.0 prefer-stable: CRM/Eck/BAO/EckEntityType.php#L37
Offset 'name' does not exist on array{entity_name: non-falsy-string}.
PHPStan with PHP 8.0 prefer-stable: CRM/Eck/BAO/EckEntityType.php#L112
Method CRM_Eck_BAO_EckEntityType::getCustomGroups() should return array<int, array<string, mixed>> but returns array.
PHPStan with PHP 8.0 prefer-stable: CRM/Eck/Form/EckSubtype.php#L29
Property CRM_Eck_Form_EckSubtype::$_subType type has no value type specified in iterable type array.
PHPStan with PHP 8.0 prefer-stable: CRM/Eck/Form/EckSubtype.php#L31
Property CRM_Eck_Form_EckSubtype::$_customGroups type has no value type specified in iterable type array.
PHPStan with PHP 8.0 prefer-stable: CRM/Eck/Form/EckSubtype.php#L36
Method CRM_Eck_Form_EckSubtype::preProcess() has no return type specified.
PHPStan with PHP 8.0 prefer-stable: CRM/Eck/Form/EckSubtype.php#L37
Parameter #1 $action of method CRM_Core_Form::setAction() expects int, mixed given.
PHPStan with PHP 8.0 prefer-stable: CRM/Eck/Form/EckSubtype.php#L41
Only booleans are allowed in a negated boolean, mixed given.
PHPStan with PHP 8.0 prefer-stable: CRM/Eck/Form/EckSubtype.php#L41
Property CRM_Eck_Form_EckSubtype::$_entityType (string|null) does not accept mixed.
PHPStan with PHP 8.0 prefer-stable: CRM/Eck/Form/EckSubtype.php#L42
Do not throw the \Exception base class. Instead, extend the \Exception base class. More info: http://bit.ly/subtypeexception
PHPStan with PHP 8.0 prefer-lowest
The job was canceled because "_7_4_prefer-stable" failed.
PHPStan with PHP 8.0 prefer-lowest: CRM/Eck/BAO/EckEntityType.php#L33
Call to an undefined method object::fetchAll().
PHPStan with PHP 8.0 prefer-lowest: CRM/Eck/BAO/EckEntityType.php#L37
Offset 'name' does not exist on array{entity_name: non-falsy-string}.
PHPStan with PHP 8.0 prefer-lowest: CRM/Eck/BAO/EckEntityType.php#L112
Method CRM_Eck_BAO_EckEntityType::getCustomGroups() should return array<int, array<string, mixed>> but returns array.
PHPStan with PHP 8.0 prefer-lowest: CRM/Eck/Form/EckSubtype.php#L29
Property CRM_Eck_Form_EckSubtype::$_subType type has no value type specified in iterable type array.
PHPStan with PHP 8.0 prefer-lowest: CRM/Eck/Form/EckSubtype.php#L31
Property CRM_Eck_Form_EckSubtype::$_customGroups type has no value type specified in iterable type array.
PHPStan with PHP 8.0 prefer-lowest: CRM/Eck/Form/EckSubtype.php#L36
Method CRM_Eck_Form_EckSubtype::preProcess() has no return type specified.
PHPStan with PHP 8.0 prefer-lowest: CRM/Eck/Form/EckSubtype.php#L37
Parameter #1 $action of method CRM_Core_Form::setAction() expects int, mixed given.
PHPStan with PHP 8.0 prefer-lowest: CRM/Eck/Form/EckSubtype.php#L41
Only booleans are allowed in a negated boolean, mixed given.
PHPStan with PHP 8.0 prefer-lowest: CRM/Eck/Form/EckSubtype.php#L41
Property CRM_Eck_Form_EckSubtype::$_entityType (string|null) does not accept mixed.
PHPStan with PHP 8.0 prefer-lowest: CRM/Eck/Form/EckSubtype.php#L42
Do not throw the \Exception base class. Instead, extend the \Exception base class. More info: http://bit.ly/subtypeexception
PHPStan with PHP 8.2 prefer-stable
The job was canceled because "_7_4_prefer-stable" failed.
PHPStan with PHP 8.2 prefer-stable
The operation was canceled.
PHPStan with PHP 7.4 prefer-stable
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/.