Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 774 Bytes

2022-05-03-consistent-deprecation-handling.md

File metadata and controls

13 lines (12 loc) · 774 Bytes
title issue
Consistent deprecation handling in core
NEXT-20367

Core

  • Added method triggerDeprecationOrThrow() to \Shopware\Core\Framework\Feature, that should be called whenever a deprecated functionality is used.
  • Deprecated method triggerDeprecated() of \Shopware\Core\Framework\Feature, the method will be removed in v6.5.0.0, use triggerDeprecationOrThrow() instead.
  • Added new PhpStan rule \Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\Deprecation\DeprecatedMethodsThrowDeprecationRule to verify that all deprecated methods throw a deprecation notice.

Next Major Version Changes

Removal of Feature::triggerDeprecated()

The method Feature::triggerDeprecated() was removed, use Feature::triggerDeprecationOrThrow() instead.