Skip to content

fix for Error: Attempt to assign property "step" on null closes issue #1036#1071

Merged
wisskid merged 3 commits into
smarty-php:masterfrom
antman3351:issue-1036-for-bug
Jun 23, 2026
Merged

fix for Error: Attempt to assign property "step" on null closes issue #1036#1071
wisskid merged 3 commits into
smarty-php:masterfrom
antman3351:issue-1036-for-bug

Conversation

@antman3351

Copy link
Copy Markdown
Contributor

fix for Error: Attempt to assign property "step" on null in extended templates + added tests closes issue #1036

antman3351 and others added 3 commits October 8, 2024 09:30
Resolve the loop Variable via $_smarty_tpl->getVariable() instead of
directly indexing $_smarty_tpl->tpl_vars[], which is null when a child
block renders under SCOPE_PARENT.

Consolidate the issue smarty-php#1036 tests into a single data-provider test that
also exercises the caching-enabled path, and add a changelog entry.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@wisskid
wisskid merged commit 1c9b2ce into smarty-php:master Jun 23, 2026
18 checks passed
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.

2 participants