Restler icon indicating copy to clipboard operation
Restler copied to clipboard

Catchable fatal error: Instantiation of 'Closure' is not allowed in Luracast/Restler/Resources.php on line 711

Open swbullis opened this issue 11 years ago • 2 comments

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.

swbullis avatar Mar 11 '15 03:03 swbullis

Please provide us with the minimal code to reproduce this on RC6

Arul- avatar Mar 17 '15 07:03 Arul-

I'm closing the issue as I could not reproduce. Please re-open with the sample code

Arul- avatar May 25 '15 09:05 Arul-