Skip to content

Commit

Permalink
Add note to docs about plugins that expect parameters by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
wisskid committed Dec 27, 2024
1 parent c6bff57 commit fb99711
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ $smarty->registerPlugin('modifier', 'my_special_func', 'my_special_func');

But you may want to consider writing a proper [extension](api/extending/extensions.md).

#### Passing parameters by reference
You cannot use plugins that expect a parameter by reference anymore. PHP-function such as `reset()`, `prev()`,
`next()` and `end()` can be registered as plugin, but they won't work because they expect a parameter by
reference and Smarty will try to pass it by value.

### Removed undocumented tags

Smarty 4 still supported some tags that have been carried over from previous version, but have never been documented.
Expand Down

0 comments on commit fb99711

Please sign in to comment.