BC: removed deprecated symbols#587
Merged
jkowalleck merged 8 commits intofeat/4.0.0-devfrom Jan 9, 2026
Merged
Conversation
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
3 tasks
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
Merged
jkowalleck
added a commit
that referenced
this pull request
Feb 17, 2026
see https://github.com/CycloneDX/cyclonedx-php-library/milestone/4 ---- * BREAKING changes * Removed deprecated symbols * Changed constructor of `CycloneDX\Contrib\License\Factories\LicenseFactory` * Changed dependencies * Removed * Class `CycloneDX\Core\Factories\LicenseFactory` Use `CycloneDX\Contrib\License\Factories\LicenseFactory` instead. * Class `CycloneDX\Core\Utils\BomUtility` Use `CycloneDX\Contrib\Bom\Utils\BomUtils` instead. * Method `CycloneDX\Core\Validation\BaseValidator::getSpec()` * Changed * `CycloneDX\Contrib\License\Factories\LicenseFactory::__construct()` parameters are no longer autopopulated Downstream implementations have to populate the parameters on their own, now. * `CycloneDX\Core\Models\Component::setPackageUrl()` accepts `?string` Downstream implementations may use [package-url/packageurl-php](https://packagist.org/packages/package-url/packageurl-php) for generation. * `CycloneDX\Core\Models\Component::getPackageUrl()` returns `?string` Downstream implementations may use [package-url/packageurl-php](https://packagist.org/packages/package-url/packageurl-php) for parsing. * `CycloneDX\Core\Validation\BaseValidator::__construct()` parameter is type `CycloneDX\Core\Spec\Version` Was internal type `CycloneDX\Core\Spec\_SpecProtocol`. * Dependencies * No longer depends on, but suggests `composer/spdx-licenses:^1.5` May be used when utilizing `CycloneDX\Contrib\License\Factories\LicenseFactory`. * No longer depend on `package-url/packageurl-php` ---- - contains #587 - contains #588 - contains #591
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
CycloneDX\Contrib\License\Factories\LicenseFactoryCycloneDX\Core\Factories\LicenseFactoryUse
\CycloneDX\Contrib\License\Factories\LicenseFactoryinstead.CycloneDX\Core\Utils\BomUtilityUse
\CycloneDX\Contrib\Bom\Utils\BomUtilsinstead.CycloneDX\Contrib\License\Factories\LicenseFactory::__construct()parameters are no longer autopopulatedDownstream implementations have to populate the parameters on their own, now.
composer/spdx-licenses:^1.5May be used when utilizing
\CycloneDX\Contrib\License\Factories\LicenseFactory.part of #571
AI Tool Disclosure
[e.g. GitHub CoPilot, ChatGPT, JetBrains Junie etc.][e.g. GPT-4.1, Claude Haiku 4.5, Gemini 2.5 Pro etc.][Summarize the key prompts or instructions given to the AI tools]Affirmation