.. include:: /Includes.rst.txt

.. _changelog-4.x:

=============
Changelog 4.x
=============

4.0
---

* Breaking: Method :php:`TYPO3Fluid\Fluid\View\AbstractTemplateView::initializeRenderingContext()`
  has been removed.
* Breaking: Method :php:`TYPO3Fluid\Fluid\View\AbstractTemplateView::setCache()`
  has been removed.
* Breaking: Method :php:`TYPO3Fluid\Fluid\View\AbstractTemplateView::getTemplatePaths()`
  has been removed.
* Breaking: Method :php:`TYPO3Fluid\Fluid\View\AbstractTemplateView::getViewHelperResolver()`
  has been removed.
* Breaking: Change visibility of class constants that represent internal Fluid state. The
  following constants have been set to `protected` and can only be accessed by
  `AbstractTemplateView` and its child implementations:
  :php:`TYPO3Fluid\Fluid\View\AbstractTemplateView::RENDERING_TEMPLATE`,
  :php:`TYPO3Fluid\Fluid\View\AbstractTemplateView::RENDERING_PARTIAL`,
  :php:`TYPO3Fluid\Fluid\View\AbstractTemplateView::RENDERING_LAYOUT`
* Breaking: Careful addition of method and property type hints throughout the system.
  This should be only mildly breaking and projects should be able to adapt easily.
* Deprecation: First parameter of method :php:`TYPO3Fluid\Fluid\View\TemplatePaths->__construct()`
  is deprecated. The Constructor will be removed with Fluid v5.
* Deprecation: Method :php:`TYPO3Fluid\Fluid\View\TemplatePaths->fillFromConfigurationArray()`
  now emits a E_USER_DEPRECATED level error.
* Deprecation: Method :php:`TYPO3Fluid\Fluid\View\TemplatePaths->fillDefaultsByPackageName()`
  now emits a E_USER_DEPRECATED level error.
* Deprecation: Method :php:`TYPO3Fluid\Fluid\View\TemplatePaths->ensureAbsolutePaths()`
  now emits a E_USER_DEPRECATED level error.
* Deprecation: Method :php:`TYPO3Fluid\Fluid\View\TemplatePaths->extractPathArrays()`
  now emits a E_USER_DEPRECATED level error.
* Deprecation: Method :php:`TYPO3Fluid\Fluid\View\TemplatePaths->getPackagePath()`
  now emits a E_USER_DEPRECATED level error.
* Deprecation: Method :php:`TYPO3Fluid\Fluid\View\TemplatePaths->toArray()`
  now emits a E_USER_DEPRECATED level error.
* Deprecation: Constant :php:`TYPO3Fluid\Fluid\View\TemplatePaths::DEFAULT_TEMPLATES_DIRECTORY`
  has been marked as deprecated and will be removed in Fluid v5.
* Deprecation: Constant :php:`TYPO3Fluid\Fluid\View\TemplatePaths::DEFAULT_LAYOUTS_DIRECTORY`
  has been marked as deprecated and will be removed in Fluid v5.
* Deprecation: Constant :php:`TYPO3Fluid\Fluid\View\TemplatePaths::DEFAULT_PARTIALS_DIRECTORY`
  has been marked as deprecated and will be removed in Fluid v5.
* Deprecation: Trait :php:`TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic`
  now emits a E_USER_DEPRECATED level error.
* Deprecation: Trait :php:`TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithContentArgumentAndRenderStatic`
  now emits a E_USER_DEPRECATED level error.
* Deprecation: Static method :php:`renderStatic()` on ViewHelpers that don't use :php:`TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic`
  or :php:`TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithContentArgumentAndRenderStatic` now emits a
  E_USER_DEPRECATED level error.
* Deprecation: Method :php:`TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper->overrideArgument()`
  now emits a E_USER_DEPRECATED level error.
* Deprecation: Calling method :php:`TYPO3Fluid\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper->registerUniversalTagAttributes()`
  now emits a E_USER_DEPRECATED level error.
* Deprecation: Calling method :php:`TYPO3Fluid\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper->registerTagAttribute()`
  now emits a E_USER_DEPRECATED level error.
* Breaking: Method :php:`TYPO3Fluid\Fluid\Core\ViewHelper\AbstractConditionViewHelper->evaluateCondition()`
  and handling has been removed.
* Breaking: Method :php:`TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ObjectAccessorNode->getAccessors()`
  has been removed.
* Breaking: Constant :php:`TYPO3Fluid\Fluid\Core\Compiler\TemplateCompiler::SHOULD_GENERATE_VIEWHELPER_INVOCATION`
  has been removed.
* Breaking: Constant :php:`TYPO3Fluid\Fluid\Core\Variables\StandardVariableProvider::ACCESSOR_ARRAY`
  has been removed.
* Breaking: Constant :php:`TYPO3Fluid\Fluid\Core\Variables\StandardVariableProvider::ACCESSOR_GETTER`
  has been removed.
* Breaking: Constant :php:`TYPO3Fluid\Fluid\Core\Variables\StandardVariableProvider::ACCESSOR_ASSERTER`
  has been removed.
* Breaking: Constant :php:`TYPO3Fluid\Fluid\Core\Variables\StandardVariableProvider::ACCESSOR_PUBLICPROPERTY`
  has been removed.
* Breaking: Static property :php:`TYPO3Fluid\Fluid\Core\Parser\Patterns::$SCAN_PATTERN_ESCAPINGMODIFIER`
  has been removed.
* Breaking: Trait :php:`TYPO3Fluid\Fluid\Core\ViewHelper\Traits\ParserRuntimeOnly`
  has been removed.
* Breaking: Interface :php:`TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\Expression\ParseTimeEvaluatedExpressionNodeInterface`
  and its handling has been removed.
* Breaking: Class :php:`TYPO3Fluid\Fluid\Core\Variables\VariableExtractor`
  has been removed.
* Breaking: Class :php:`TYPO3Fluid\Fluid\Core\Compiler\ViewHelperCompiler`
  has been removed.
* Breaking: Exception :php:`TYPO3Fluid\Fluid\Core\Compiler\StopCompilingChildrenException`
  and its handling has been removed.
* Breaking: Test abstracts :php:`TYPO3Fluid\Fluid\Tests\BaseTestCase` and
  :php:`TYPO3Fluid\Fluid\Tests\UnitTestCase` have been removed.
* Breaking: Using invalid namespace `https://typo3.org` instead of
  `http://typo3.org` (https vs. http) throws an exception
* Important: Minimum PHP version has been raised to ^8.2
