Closed martio closed 1 year ago
Tinker is a long running process. A destructor isn't executed here.
The destructor will be executed the next time you type anything:
PsySH keeps a reference to the most recent return value around in the $_
magic variable, so you've gotta do something to clear that out before the destructor will be called:
You'd have similar issues with the $_e
magic variable.
Description:
Recently I noticed that the class destructor is not executed. I checked on an old version of Tinker and it's OK.
Steps To Reproduce: