Fix incorrect method call & optional param
Fix incorrect method call & optional param

dnmvisser/simplesamlphp,dnmvisser/simplesamlphp,ghalse/simplesamlphp,simplesamlphp/simplesamlphp,ghalse/simplesamlphp,ghalse/simplesamlphp,dnmvisser/simplesamlphp,simplesamlphp/simplesamlphp,ghalse/simplesamlphp,simplesamlphp/simplesamlphp,dnmvisser/simplesamlphp,simplesamlphp/simplesamlphp