diff --git a/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php b/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php index b07615526..fd8060a2e 100644 --- a/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php +++ b/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php @@ -36,6 +36,16 @@ * @property Smarty_Internal_Method_RegisterPlugin $registerPlugin * @property mixed|\Smarty_Template_Cached configLoad */ +/* + * Later versions of PHP deprecate dynamic properties in a class. Since it is + * possible, without a detailed knowledge of the code, that a variable we + * haven't declared might be a different class depending on the context, + * we add this line. See + * https://deycode.com/posts/ + * how-to-fix-php-warning-deprecated-creation-of-dynamic-property-is-deprecated + */ + +#[\AllowDynamicProperties] class Smarty_Internal_Extension_Handler { public $objType = null; @@ -51,7 +61,6 @@ class Smarty_Internal_Extension_Handler 'DebugTemplate' => 0, 'RegisteredObject' => 0, 'StreamVariable' => 0, 'TemplateVars' => 0, 'Literals' => 'Literals', );// - private $resolvedProperties = array(); /** diff --git a/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php b/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php index bae22a7d5..d8d78e9e4 100644 --- a/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php +++ b/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php @@ -24,6 +24,16 @@ * * @method bool mustCompile() */ +/* + * Later versions of PHP deprecate dynamic properties in a class. Since it is + * possible, without a detailed knowledge of the code, that a variable we + * haven't declared might be a different class depending on the context, + * we add this line. See + * https://deycode.com/posts/ + * how-to-fix-php-warning-deprecated-creation-of-dynamic-property-is-deprecated + */ + +#[\AllowDynamicProperties] class Smarty_Internal_Template extends Smarty_Internal_TemplateBase { /** @@ -125,7 +135,6 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase * @var callback[] */ public $endRenderCallbacks = array(); - /** * Create template data object * Some of the global Smarty settings copied to template scope diff --git a/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_variable.php b/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_variable.php index 914d99bd7..23d31c0dc 100644 --- a/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_variable.php +++ b/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_variable.php @@ -7,6 +7,16 @@ * @package Smarty * @subpackage Template */ +/* + * Later versions of PHP deprecate dynamic properties in a class. Since it is + * possible, without a detailed knowledge of the code, that a variable we + * haven't declared might be a different class depending on the context, + * we add this line. See + * https://deycode.com/posts/ + * how-to-fix-php-warning-deprecated-creation-of-dynamic-property-is-deprecated + */ + +#[\AllowDynamicProperties] class Smarty_Variable { /**