Skip to content

Conversation

@s2b
Copy link
Contributor

@s2b s2b commented Aug 2, 2025

In preparation for more type hints in ViewHelperInterface and
abstract classes, non-critical type hints are added to all existing
ViewHelper classes. These include:

  • return types for initializeArguments() and render()
  • parameter and return types for internal methods

Even though these changes most certainly aren't breaking, we
still apply them to v5 only, just to be sure. In follow-up patches,
the abstract classes will get more type hints (e. g. for properties),
which will require (!) changes to the ViewHelpers and thus will
be breaking changes.

In preparation for more type hints in `ViewHelperInterface` and
abstract classes, non-critical type hints are added to all existing
ViewHelper classes. These include:

* return types for `initializeArguments()` and `render()`
* parameter and return types for internal methods

Even though these changes most certainly aren't breaking, we
still apply them to v5 only, just to be sure. In follow-up patches,
the abstract classes will get more type hints (e. g. for properties),
which will require (!) changes to the ViewHelpers and thus will
be breaking changes.
@s2b s2b force-pushed the task/viewHelperReturnTypes branch from e8d7cf9 to 696016f Compare August 2, 2025 16:57
@s2b s2b merged commit f844ae5 into main Aug 11, 2025
8 checks passed
@s2b s2b deleted the task/viewHelperReturnTypes branch August 11, 2025 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants