wordpress-plugin-boilerplate
wordpress-plugin-boilerplate copied to clipboard
WP Cli Failing Executing commands after activating plugin.
WP Cli fails with the error below as first argument of class_exists needs to be a string in src/App/Cli/Example.php#L38.
Error: Test Plugin 1.0.0 › Fatal ErrorPlugin initialize failed. Could not load class "TestPlugin\App\Cli\Example".
The "init" method is probably missing or try a `composer dumpautoload -o` to refresh the autoloader.
https://github.com/wp-strap/wordpress-plugin-boilerplate/blob/3f02a0e85eea155ad7fbece85a6abe52ec3a9629/src/App/Cli/Example.php#L31-L41