I upgraded my XAMPP version and installed PHP 5.5.9. After upgradetion I am getting this message. I googled it but not able to find clear idea to fix it. I got one link of stackoverflow , they are talking about signature of the initialize method, but didn't get exactly where I need to modify. Please guide me how to fix it.
Thank you in Advance.
Error:
Strict (2048): Declaration of EmailComponent::initialize() should be compatible with Component::initialize(Controller $controller) [APP\Controller\Component\EmailComponent.php, line 490] Code Context App::load() - CORE\Cake\Core\App.php, line 562 App::load() - CORE\Cake\Core\App.php, line 562 spl_autoload_call - [internal], line ?? class_exists - [internal], line ?? ComponentCollection::load() - CORE\Cake\Controller\ComponentCollection.php, line 100 ComponentCollection::init() - CORE\Cake\Controller\ComponentCollection.php, line 53 Controller::constructClasses() - CORE\Cake\Controller\Controller.php, line 635 Dispatcher::_invoke() - CORE\Cake\Routing\Dispatcher.php, line 183 Dispatcher::dispatch() - CORE\Cake\Routing\Dispatcher.php, line 162 [main] - APP\webroot\index.php, line 109
EmailComponent:
Read the error message, it is very clear:
Your method signature doesn't match. Make them match.