Skip to content

[Issue] Fix PHPDoc param attribute is not always a string #30191

Closed
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #30182: Fix PHPDoc param attribute is not always a string


Description (*)

Fix PHPDoc param attribute is not always a string

In the implementation:

if ($attribute instanceof AbstractAttribute) {
    $attributes = $attribute->getAttributeCode();
} elseif (is_string($attribute)) {
    $attributes = [$attribute];
} else {
    $attributes = $attribute;
}

Manual testing scenarios (*)

N/A

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable) / N/A
  • All automated tests passed successfully (all builds are green) / N/A

Metadata

Metadata

Labels

Component: SalesFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedPriority: P4No current plan to fix. Fixing can be deferred as a logical part of more important work.Progress: doneSeverity: S4Affects aesthetics, professional look and feel, “quality” or “usability”.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions