janus-ssp / janus

Fully featured metadata registration administration module built on top of simpleSAMLphp.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sspmod_janus_Messenger_SimpleMail::__construct()

Jockel007 opened this issue · comments

Hi!

I got following error in /var/log/httpd/ssl_error_log:

[Thu Nov 30 14:17:54.061725 2017] [:error] [pid 17795] [client X.X.X.X.:55090] PHP Fatal error: Declaration of sspmod_janus_Messenger_SimpleMail::__construct() must be compatible with sspmod_janus_Messenger::__construct(array $option = NULL) in /var/simplesamlphp/modules/janus/lib/Messenger/SimpleMail.php on line 30, referer: https://example.com/simplesaml/module.php/janus/editentity.php?eid=1

I fixed it with:

-protected function __construct(array $option)
+protected function __construct(array $option = null)