Skip to content

Late Static Binding on private constants in Magento\Catalog\ViewModel\Product\Breadcrumbs #29879

Closed
@Cheeerd

Description

@Cheeerd

Preconditions (*)

  1. Magento 2.4.0
  2. PHP 7.4.9

Steps to reproduce (*)

  1. Create a plugin for Magento\Catalog\ViewModel\Product\Breadcrumbs

Expected result (*)

  1. All works

Actual result (*)

  1. Interceptor class can't get access to private constants through late static bindings
  2. Error: Undefined class constant 'XML_PATH_CATEGORY_URL_SUFFIX' in /var/www/magento2/public_html/vendor/magento/module-catalog/ViewModel/Product/Breadcrumbs.php:74 Stack trace: #0

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Fixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Format is validGate 1 Passed. Automatic verification of issue format passedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.4.0Indicates original Magento version for the Issue report.Severity: S2Major restrictions or short-term circumventions are required until a fix is available.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions