Skip to content

Commit

Permalink
Add upgrading remarks on magic APi methods.
Browse files Browse the repository at this point in the history
Fixes #979
  • Loading branch information
wisskid committed Dec 27, 2024
1 parent fb99711 commit ab247c7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ Search your code for the following changes:
- `$smarty->assignByRef()` should be replaced with `$smarty->assign()`
- `$smarty->loadPlugin()` should be replaced with `$smarty->registerPlugin()`

### Removed undocumented magic API methods

Smarty v4 allowed setting (internal) properties for which no setter existed by using magic methods
that start with either `set` or `get`. This has been removed in Smarty 5.

For example, `$smarty->setErrorUnassigned(true);` would set the `error_unassigned` property.

Every setter of getter that was ever documented or unit tested has been kept.

### Removed PHP constants

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

0 comments on commit ab247c7

Please sign in to comment.