Skip to content

Commit ab247c7

Browse files
committed
Add upgrading remarks on magic APi methods.
Fixes #979
1 parent fb99711 commit ab247c7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/upgrading.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ Search your code for the following changes:
107107
- `$smarty->assignByRef()` should be replaced with `$smarty->assign()`
108108
- `$smarty->loadPlugin()` should be replaced with `$smarty->registerPlugin()`
109109

110+
### Removed undocumented magic API methods
111+
112+
Smarty v4 allowed setting (internal) properties for which no setter existed by using magic methods
113+
that start with either `set` or `get`. This has been removed in Smarty 5.
114+
115+
For example, `$smarty->setErrorUnassigned(true);` would set the `error_unassigned` property.
116+
117+
Every setter of getter that was ever documented or unit tested has been kept.
118+
110119
### Removed PHP constants
111120

112121
The following constants have been removed to prevent global side effects.

0 commit comments

Comments
 (0)