title | issue |
---|---|
Consistent deprecation handling in core |
NEXT-20367 |
- 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, usetriggerDeprecationOrThrow()
instead. - Added new PhpStan rule
\Shopware\Core\DevOps\StaticAnalyze\PHPStan\Rules\Deprecation\DeprecatedMethodsThrowDeprecationRule
to verify that all deprecated methods throw a deprecation notice.
The method Feature::triggerDeprecated()
was removed, use Feature::triggerDeprecationOrThrow()
instead.