Skip to content

implement basic structure #3

implement basic structure

implement basic structure #3

Triggered via pull request November 7, 2024 10:22
Status Failure
Total duration 56s
Artifacts

phpstan.yml

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

Annotations

25 errors and 1 warning
PHPStan with PHP 8.3 prefer-lowest: Civi/Notification/Entity/RuleEntity.php#L81
Parameter #1 $entityValues of class Civi\Notification\Entity\ConditionEntity constructor expects array{id: int, field_name: string, operator: string, value: string}, mixed given.
PHPStan with PHP 8.3 prefer-lowest: Civi/Notification/Entity/RuleEntity.php#L99
Parameter #1 $entityValues of class Civi\Notification\Entity\FieldMonitoringEntity constructor expects array{id: int, field_name: string, operator_before: string, value_before: string, operator_after: string, value_after: string}, mixed given.
PHPStan with PHP 8.3 prefer-lowest: Civi/Notification/Entity/RuleEntity.php#L117
Parameter #1 $entityValues of class Civi\Notification\Entity\ContactSelectionEntity constructor expects array{id: int, contact_ids: array<string, int>, groups: array<string, int>, contact_type_ids: array<string, string>, custom: array|null}, mixed given.
PHPStan with PHP 8.3 prefer-lowest: Civi/Notification/Entity/RuleEntity.php#L135
Parameter #1 $entityValues of class Civi\Notification\Entity\RuleMsgTemplateEntity constructor expects array{id: int, msg_template_id: int, languages: array<string, string>}, mixed given.
PHPStan with PHP 8.3 prefer-lowest: Civi/Notification/Entity/RuleSetEntity.php#L72
Parameter #1 $entityValues of class Civi\Notification\Entity\RuleEntity constructor expects array{id: int, preferred_location_type_id: int|null, email_addresses: array<string, string>|null, is_active: bool, is_respect_communication_suspension: bool, is_stop_after_this_rule: bool, weight: int|null}, mixed given.
PHPStan with PHP 8.3 prefer-lowest: Civi/Notification/Source/ContactLoader.php#L40
Cannot access offset 'email' on mixed.
PHPStan with PHP 8.3 prefer-lowest: Civi/Notification/Source/ContactLoader.php#L40
Cannot access offset 'email.email' on mixed.
PHPStan with PHP 8.3 prefer-lowest: Civi/Notification/Source/ContactLoader.php#L41
Cannot access offset 'email.email' on mixed.
PHPStan with PHP 8.3 prefer-lowest: Civi/Notification/Source/ContactLoader.php#L42
Parameter #1 $contact of class Civi\Notification\Entity\NotificationRecipient constructor expects array{id: int, display_name: string, email: string, preferred_language: string|null}, mixed given.
PHPStan with PHP 8.3 prefer-lowest: Civi/Notification/Source/ContactLoader.php#L73
Cannot access offset 'email' on mixed.
PHPStan with PHP 8.3 prefer-stable
The job was canceled because "_8_3_prefer-lowest" failed.
PHPStan with PHP 8.3 prefer-stable: Civi/Notification/Entity/RuleEntity.php#L81
Parameter #1 $entityValues of class Civi\Notification\Entity\ConditionEntity constructor expects array{id: int, field_name: string, operator: string, value: string}, mixed given.
PHPStan with PHP 8.3 prefer-stable: Civi/Notification/Entity/RuleEntity.php#L99
Parameter #1 $entityValues of class Civi\Notification\Entity\FieldMonitoringEntity constructor expects array{id: int, field_name: string, operator_before: string, value_before: string, operator_after: string, value_after: string}, mixed given.
PHPStan with PHP 8.3 prefer-stable: Civi/Notification/Entity/RuleEntity.php#L117
Parameter #1 $entityValues of class Civi\Notification\Entity\ContactSelectionEntity constructor expects array{id: int, contact_ids: array<string, int>, groups: array<string, int>, contact_type_ids: array<string, string>, custom: array|null}, mixed given.
PHPStan with PHP 8.3 prefer-stable: Civi/Notification/Entity/RuleEntity.php#L135
Parameter #1 $entityValues of class Civi\Notification\Entity\RuleMsgTemplateEntity constructor expects array{id: int, msg_template_id: int, languages: array<string, string>}, mixed given.
PHPStan with PHP 8.3 prefer-stable: Civi/Notification/Entity/RuleSetEntity.php#L72
Parameter #1 $entityValues of class Civi\Notification\Entity\RuleEntity constructor expects array{id: int, preferred_location_type_id: int|null, email_addresses: array<string, string>|null, is_active: bool, is_respect_communication_suspension: bool, is_stop_after_this_rule: bool, weight: int|null}, mixed given.
PHPStan with PHP 8.3 prefer-stable: Civi/Notification/Source/ContactLoader.php#L40
Cannot access offset 'email' on mixed.
PHPStan with PHP 8.3 prefer-stable: Civi/Notification/Source/ContactLoader.php#L40
Cannot access offset 'email.email' on mixed.
PHPStan with PHP 8.3 prefer-stable: Civi/Notification/Source/ContactLoader.php#L41
Cannot access offset 'email.email' on mixed.
PHPStan with PHP 8.3 prefer-stable: Civi/Notification/Source/ContactLoader.php#L42
Parameter #1 $contact of class Civi\Notification\Entity\NotificationRecipient constructor expects array{id: int, display_name: string, email: string, preferred_language: string|null}, mixed given.
PHPStan with PHP 8.3 prefer-stable: Civi/Notification/Source/ContactLoader.php#L73
Cannot access offset 'email' on mixed.
PHPStan with PHP 8.2 prefer-stable
The job was canceled because "_8_3_prefer-lowest" failed.
PHPStan with PHP 8.2 prefer-stable
The operation was canceled.
PHPStan with PHP 8.2 prefer-lowest
The job was canceled because "_8_3_prefer-lowest" failed.
PHPStan with PHP 8.2 prefer-lowest
The operation was canceled.
PHPStan with PHP 8.3 prefer-lowest
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/