Skip to content

Conversation

@s2b
Copy link
Contributor

@s2b s2b commented Sep 13, 2025

This patch addresses various deprecations that were introduced in
recent dev versions of PHP 8.5. All changes should be non-breaking
and thus can be backported to Fluid v4.

  • TemplateParser now uses empty strings instead of null as array
    key for runtime cache. Public API will be adjusted in v5 only.
  • StandardVariableProvider and ViewHelperVariableContainer use
    __serialize() instead of __sleep() for serialization.
  • GroupedForViewHelper ensures to use an empty string instead of
    null for array key to avoid the deprecation and considered
    non-breaking because php converted null-index to "" index
    anyway.

This patch addresses various deprecations that were introduced in
recent dev versions of PHP 8.5. All changes should be non-breaking
and thus can be backported to Fluid v4.

* `TemplateParser` now uses empty strings instead of `null` as array
  key for runtime cache. Public API will be adjusted in v5 only.
* `StandardVariableProvider` and `ViewHelperVariableContainer` use
  `__serialize()` instead of `__sleep()` for serialization.
* GroupedForViewHelper ensures to use an empty string instead of
  `null` for array key to avoid the deprecation and considered
  non-breaking because php converted null-index to `""` index
  anyway.
@s2b s2b merged commit 90f2f03 into main Sep 13, 2025
10 checks passed
@s2b s2b deleted the task/php85 branch September 13, 2025 12:14
s2b added a commit that referenced this pull request Sep 13, 2025
This patch addresses various deprecations that were introduced in
recent dev versions of PHP 8.5. All changes should be non-breaking
and thus can be backported to Fluid v4.

* `TemplateParser` now uses empty strings instead of `null` as array
  key for runtime cache. Public API will be adjusted in v5 only.
* `StandardVariableProvider` and `ViewHelperVariableContainer` use
  `__serialize()` instead of `__sleep()` for serialization.
* GroupedForViewHelper ensures to use an empty string instead of
  `null` for array key to avoid the deprecation and considered
  non-breaking because php converted null-index to `""` index
  anyway.
s2b added a commit that referenced this pull request Sep 13, 2025
This patch addresses various deprecations that were introduced in
recent dev versions of PHP 8.5. All changes should be non-breaking
and thus can be backported to Fluid v4.

* `TemplateParser` now uses empty strings instead of `null` as array
  key for runtime cache. Public API will be adjusted in v5 only.
* `StandardVariableProvider` and `ViewHelperVariableContainer` use
  `__serialize()` instead of `__sleep()` for serialization.
* GroupedForViewHelper ensures to use an empty string instead of
  `null` for array key to avoid the deprecation and considered
  non-breaking because php converted null-index to `""` index
  anyway.
s2b added a commit that referenced this pull request Sep 13, 2025
This is a follow-up from #1236. The internal changes are now reflected
in the public method signatures as well.
s2b added a commit that referenced this pull request Sep 13, 2025
This is a follow-up from #1236. The internal changes are now reflected
in the public method signatures as well.
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