Closed zackkatz closed 8 years ago
PHP Notice: Use of undefined constant YOUR_PLUGIN_DIR - assumed 'YOUR_PLUGIN_DIR'
YOUR_PLUGIN_DIR
Apparently in PHP 7, constants need to be defined, even if overridden by an extended class. Can this be updated safely to 'YOUR_PLUGIN_DIR' (a string)?
'YOUR_PLUGIN_DIR'
https://github.com/GaryJones/Gamajo-Template-Loader/blob/develop/class-gamajo-template-loader.php#L52
That makes sense. I've even type-hinted it should be a string.
If you can do a PR against the develop branch, I'll happily merge.
develop
Apparently in PHP 7, constants need to be defined, even if overridden by an extended class. Can this be updated safely to
'YOUR_PLUGIN_DIR'
(a string)?https://github.com/GaryJones/Gamajo-Template-Loader/blob/develop/class-gamajo-template-loader.php#L52