<?php
$kitchen = new Kitchen();
// Closure::bind() actually creates a new instance of the closure
$sweetsThief = Closure::bind($sweetsThief, null, $kitchen);
var_dump($sweetsThief($kitchen));
Fatal error: Uncaught Error: Class "Kitchen" not found in /in/G1KFe:3
Stack trace:
#0 {main}
thrown in /in/G1KFe on line 3
Process exited with code 255.
Fatal error: Uncaught Error: Class 'Kitchen' not found in /in/G1KFe:3
Stack trace:
#0 {main}
thrown in /in/G1KFe on line 3
Process exited with code 255.