Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP 8.2] Creation of dynamic property Smarty_Variable::$do_else is deprecated #849

Closed
MrPetovan opened this issue Jan 19, 2023 · 1 comment

Comments

@MrPetovan
Copy link
Contributor

Sample log entry:

PHP Deprecated:  Creation of dynamic property Smarty_Variable::$do_else is deprecated in smarty3/compiled/00/79/f3/0079f327cf7c99b7c784ade960290cb254503dbd_2.file.group_side.tpl.php on line 59

PHP Watch entry: https://php.watch/versions/8.2/dynamic-properties-deprecated

In the case of Smarty, this looks straightforward, the Smarty_Variable can receive the explicit declaration of the following properties currently declared dynamically:

  • key (string?)
  • show (bool)
  • iteration (int)
  • index (int)
  • do_else (bool)
  • first (bool)
  • last (bool)
  • total (int)

I'd do it but I'm unfamiliar with most of these properties so I wouldn't be able to write the correct documentation for each property.

@MrPetovan
Copy link
Contributor Author

This seems to have been addressed in #775

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

No branches or pull requests

1 participant