Strict (2048): Declaration of EmailComponent::initialize() should be compatible with Component::initialize(Controller $controller) [duplicate]

StackOverflow https://stackoverflow.com/questions/22182482

  •  05-06-2023
  •  | 
  •  

문제

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:

enter image description here

도움이 되었습니까?

해결책

Read the error message, it is very clear:

Strict (2048): Declaration of EmailComponent::initialize() should be compatible with Component::initialize(Controller $controller)

Your method signature doesn't match. Make them match.

function initialize(Controller $controller)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top