I seem to miss the meaning of this exception and error message. Hoping someone who uses symfony more than i do can help here.
log.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Using $this when not in object context' in /var/www/vendor/jeremeamia/SuperClosure/src/Jeremeamia/SuperClosure/SerializableClosure.php(99) : eval()'d code:3 Stack trace: #0 [internal function]: Illuminate\Exception\Handler->handleShutdown() #1 {main} [] []
code in quesiton is this line.
eval("\$this->closure = {$__code__};");
from the following function
public function unserialize($serialized) { // Unserialize the data we need to reconstruct the SuperClosure $this->state = unserialize($serialized); list($code, $context) = $this->state;
// Simulate the original context the Closure was created in
extract($__context__);
// Evaluate the code to recreate the Closure
eval("\$this->closure = {$__code__};");
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community