jbrinley / WP-Router

Routes paths to callback functions in WordPress
108 stars 27 forks source link

PHP requires magic methods to be public. #22

Closed Camwyn closed 4 years ago

Camwyn commented 4 years ago

the current code is throwing errors (on __sleep() ).

This fixes __sleep and converts __clone as well. To the best of my knowledge, __construct() can remain private.