Restler
Restler copied to clipboard
Catchable fatal error: Instantiation of 'Closure' is not allowed in Luracast/Restler/Resources.php on line 711
I'm getting this error when extending with EventDispatcher Class
Catchable fatal error: Instantiation of 'Closure' is not allowed in Luracast/Restler/Resources.php on line 711
class IO extends EventDispatcher{
}
But after changing addListener from public to protected the error goes away.
I'm not sure if this is a bug or just my particular use case nor am I sure this is a good fix.
Please provide us with the minimal code to reproduce this on RC6
I'm closing the issue as I could not reproduce. Please re-open with the sample code