Skip to content

research: latest psalm detections #615

@jkowalleck

Description

@jkowalleck

https://github.com/CycloneDX/cyclonedx-php-library/actions/runs/24319450584/job/71002795472#step:9:70

psalm found some codebase violations.

code is still runnable, but might not adhere latest code conventions.
need to check and maybe fix


Analyzing files...

░░░EEEEEEEE░░░░░░░░░░░░░░░░░E░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 60 / 89 (67%)
░░░░░░E░E░░░░E░░░░░░░EEE░░░░░
Error: src/Core/Collections/BomRefRepository.php:77:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Collections/ComponentRepository.php:77:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Collections/CopyrightRepository.php:77:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Collections/ExternalReferenceRepository.php:77:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Collections/HashDictionary.php:119:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Collections/LicenseRepository.php:84:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Collections/PropertyRepository.php:80:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Collections/ToolRepository.php:77:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Serialization/BaseSerializer.php:88:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Serialization/JsonSerializer.php:112:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Serialization/JsonSerializer.php:120:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Serialization/XmlSerializer.php:49:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Serialization/XmlSerializer.php:57:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:85:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:91:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:97:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:103:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:109:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:115:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:121:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:127:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:133:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:139:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:145:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:151:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:157:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:163:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:169:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:175:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:181:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:187:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:193:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Spec/_Spec.php:199:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Validation/Validators/JsonStrictValidator.php:38:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Validation/Validators/JsonValidator.php:46:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Validation/Validators/JsonValidator.php:64:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Validation/Validators/XmlValidator.php:44:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
Error: src/Core/Validation/Validators/XmlValidator.php:62:7: InvalidAttribute: Attribute Override cannot be used on a function (see https://psalm.dev/242)
🐑 results sent to shepherd.dev 🐑
------------------------------
38 errors found
------------------------------


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions