tal creates internal properties in Context.php on the fly, so it can conflict with already existing properties like slots.
The following code tries to access slots and fails. After renaming the internal slots property, it works again. I guess that's the cause for the underscore-prefix in the original tal version. __set also checks explicitly for underscores in variable names before setting them
tal creates internal properties in Context.php on the fly, so it can conflict with already existing properties like
slots
.The following code tries to access
slots
and fails. After renaming the internalslots
property, it works again. I guess that's the cause for the underscore-prefix in the original tal version. __set also checks explicitly for underscores in variable names before setting them