janus-ssp / janus

Fully featured metadata registration administration module built on top of simpleSAMLphp.
Other
13 stars 8 forks source link

sspmod_janus_Messenger_SimpleMail::__construct() #629

Closed Jockel007 closed 6 years ago

Jockel007 commented 6 years ago

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)