Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 906 Bytes

2023-05-04-add-phpstan-naming-rules.md

File metadata and controls

25 lines (22 loc) · 906 Bytes
title issue
Add symplify phpstan naming rules
NEXT-25940

Core

  • Added symplify phpstan naming rules
  • Deprecated methods setNextLanguage() and setNextDefinition() in \Shopware\Elasticsearch\Framework\Indexing\IndexerOffset, use selectNextLanguage() or selectNextDefinition() instead.
  • Deprecated method \Shopware\Core\Checkout\Document\Renderer\RenderedDocument::setContent(), it won't return any value in the future.

Next Major Version Changes

Indexer Offset Changes

The methods setNextLanguage() and setNextDefinition() in \Shopware\Elasticsearch\Framework\Indexing\IndexerOffset are removed, use selectNextLanguage() or selectNextDefinition() instead. Before:

$offset->setNextLanguage($languageId);
$offset->setNextDefinition($definition);

After:

$offset->selectNextLanguage($languageId);
$offset->selectNextDefinition($definition);