phpCAS::setDebug() is deprecated in favor of phpCAS::setLogger()

1.7k views Asked by At
phpCAS::setDebug() is deprecated in favor of phpCAS::setLogger()

I got this error today, and I can't seem to find in what file phpCAS::setDebug() is used, anyone know how I can fix it?

phpCAS::setDebug() is deprecated

I tried downgrade apereo/phpcas to 1.3.8 (composer require apereo/phpcas:1.3.8), my friend that managed the server haven't tried it yet so I'm not sure

Source: https://github.com/subfission/cas/issues/93

composer.json

2

There are 2 answers

0
Aditya Pratama On BEST ANSWER

I found the solution: https://github.com/subfission/cas/issues/93

I tried to downgrade apereo/phpcas from 1.3.9 to 1.3.8 and it worked!

1
Aceng Sobana On

Try to comment trigger_error('phpCAS::setDebug() is deprecated in favor of phpCAS::setLogger().', E_USER_DEPRECATED); in /vendor/apereo/phpcas/source/CAS.php