Skip to content

[FAU-407] Initial preparation #2

[FAU-407] Initial preparation

[FAU-407] Initial preparation #2

Triggered via pull request April 26, 2024 18:50
@amiutamiut
synchronize #1
FAU-407
Status Failure
Total duration 46s
Artifacts

quality-assurance-php.yml

on: pull_request
coding-standards-analysis-php  /  coding-standards-php
33s
coding-standards-analysis-php / coding-standards-php
static-code-analysis-php  /  static-analysis-php
31s
static-code-analysis-php / static-analysis-php
Matrix: lint-php
Matrix: tests-unit-php
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

Annotations

10 errors
InvalidArrayOffset: src/Application/AdmissionRequirementTranslated.php#L59
src/Application/AdmissionRequirementTranslated.php:59:23: InvalidArrayOffset: Cannot access value on variable $data using offset value of 'parent', expecting 'name', 'link_text' or 'link_url' (see https://psalm.dev/115)
InvalidReturnType: src/Application/AdmissionRequirementTranslated.php#L68
src/Application/AdmissionRequirementTranslated.php:68:22: InvalidReturnType: The declared return type 'array{link_text: string, link_url: string, name: string}' for Fau\DegreeProgram\Common\Application\AdmissionRequirementTranslated::asArray is incorrect, got 'array{link_text: string, link_url: string, name: string, parent: array{link_text: string, link_url: string, name: string}|null}' which is different due to additional array shape fields (parent) (see https://psalm.dev/011)
InvalidReturnStatement: src/Application/AdmissionRequirementTranslated.php#L77
src/Application/AdmissionRequirementTranslated.php:77:16: InvalidReturnStatement: The inferred type 'array{link_text: string, link_url: string, name: string, parent: array{link_text: string, link_url: string, name: string}|null}' does not match the declared return type 'array{link_text: string, link_url: string, name: string}' for Fau\DegreeProgram\Common\Application\AdmissionRequirementTranslated::asArray due to additional array shape fields (parent) (see https://psalm.dev/128)
RiskyTruthyFalsyComparison: src/Application/DegreeProgramViewTranslated.php#L282
src/Application/DegreeProgramViewTranslated.php:282:13: RiskyTruthyFalsyComparison: Operand of type array<'de'|'en', array{abroad_opportunities: array{link_text: string, link_url: string, name: string}, admission_requirement_link: array{link_text: string, link_url: string, name: string}|null, admission_requirements: array{bachelor_or_teaching_degree?: array{link_text: string, link_url: string, name: string}, master?: array{link_text: string, link_url: string, name: string}, teaching_degree_higher_semester?: array{link_text: string, link_url: string, name: string}}, application_deadline_summer_semester: string, application_deadline_winter_semester: string, apply_now_link: array{link_text: string, link_url: string, name: string}, area_of_study: array<array-key, array{link_text: string, link_url: string, name: string}>, attributes: array<array-key, string>, combinations: array<array-key, array{id: int, title: string, url: string}>, content: array{about: array{description: string, title: string}, career_prospects: array{description: string, title: string}, qualities_and_skills: array{description: string, title: string}, special_features: array{description: string, title: string}, specializations: array{description: string, title: string}, structure: array{description: string, title: string}, testimonials: array{description: string, title: string}, why_should_study: array{description: string, title: string}}, content_related_master_requirements: string, degree: array{abbreviation: string, name: string, parent: array{abbreviation: string, name: string}|null}, degree_program_fees: string, department: string, details_and_notes: string, entry_text: string, examination_regulations: string, examinations_office: array{link_text: string, link_url: string, name: string}, faculty: array<array-key, array{link_text: string, link_url: string, name: string}>, featured_image: array{id: int, rendered: string, url: string}, fee_required: bool, german_language_skills_for_international_students: array{link_text: string, link_url: string, name: string}, info_brochure: string, keywords: array<array-key, string>, lang: 'de'|'en', language_skills: string, language_skills_humanities_faculty: string, limited_combinations: array<array-key, array{id: int, title: string, url: string}>, link: string, location: array<array-key, string>, meta_description: string, module_handbook: string, notes_for_international_applicants: array{link_text: string, link_url: string, name: string}, number_of_students: array{description: string, id: string, name: string}, semester_dates: array{link_text: string, link_url: string, name: string}, semester_fee: array{link_text: string, link_url: string, name: string}, service_centers: array{link_text: string, link_url: string, name: string}, slug: string, standard_duration: string, start: array<array-key, string>, start_of_semester: array{link_text: string, link_url: string, name: string}, student_advice: array{link_text: string, link_url: string, name: string}, student_initiatives: array{link_text: string, link_url: string, name: string}, subject_groups: array<array-key, string>, subject_specific_advice: array{link_text: string, link_url: string, name: string}, subtitle: string, teaching_language: string, teaser_image: array{id: int, rendered: string, url: string}, title: string, url: string, videos: array<array-key, string>}>|null contains type array<'de'|'en', array{abroad_opportunities: array{link_text: string, link_url: string, name: string}, admission_requirement_link: array{link_text: string, link_url: string, name: string}|null, admission_requirements: array{bachelor_or_teaching_degree?: array{link_text: string, link_url: string, name: string}, master?: array{link_text: string, link_url: string, name: string}, teaching_degree_higher_semester?: array{link_text: string, link_url: string, name: string}}, application_deadline_summer_semester: string, application_deadline_winter_semester: string, apply_now_link: array{link_text: string, link_url: string, name: string}, area_of_study: array<array-key, array{link_text: string,
RiskyTruthyFalsyComparison: src/Application/Filter/AdmissionRequirementTypeFilter.php#L49
src/Application/Filter/AdmissionRequirementTypeFilter.php:49:16: RiskyTruthyFalsyComparison: Operand of type array<array-key, 'eingeschraenkt'|'frei'>|null contains type array<array-key, 'eingeschraenkt'|'frei'>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Application/Filter/ArrayOfIdsFilterTrait.php#L30
src/Application/Filter/ArrayOfIdsFilterTrait.php:30:16: RiskyTruthyFalsyComparison: Operand of type array<array-key, int>|null contains type array<array-key, int>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Application/Filter/SearchKeywordFilter.php#L28
src/Application/Filter/SearchKeywordFilter.php:28:16: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
MixedArgumentTypeCoercion: src/Infrastructure/Content/Meta/MetaFieldsList.php#L19
src/Infrastructure/Content/Meta/MetaFieldsList.php:19:29: MixedArgumentTypeCoercion: Argument 1 of ArrayObject::__construct expects array<int, string>|null|object, but parent type list{'teaser_image', string, 'standard_duration', 'fee_required', 'subtitle', string, 'videos', 'meta_description', string, 'about', string, 'structure', string, 'specializations', string, 'qualities_and_skills', string, 'why_should_study', string, 'career_prospects', string, 'special_features', string, 'testimonials', string, 'content_related_master_requirements', 'application_deadline_winter_semester', 'application_deadline_summer_semester', 'details_and_notes', string, 'language_skills', string, 'language_skills_humanities_faculty', 'module_handbook', 'url', string, mixed, 'degree_program_fees', string} provided (see https://psalm.dev/194)
UndefinedConstant: src/Infrastructure/Content/Meta/MetaFieldsList.php#L56
src/Infrastructure/Content/Meta/MetaFieldsList.php:56:13: UndefinedConstant: Constant Fau\DegreeProgram\Common\Domain\DegreeProgram::STUDENT_REPRESENTATIVES is not defined (see https://psalm.dev/020)
RiskyTruthyFalsyComparison: src/Infrastructure/Repository/BilingualRepository.php#L93
src/Infrastructure/Repository/BilingualRepository.php:93:38: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)