Skip to content

Commit

Permalink
Fix for #93
Browse files Browse the repository at this point in the history
Addressing the depreciation of setDebug in phpCAS.
  • Loading branch information
subfission authored Feb 9, 2021
1 parent c456da2 commit bb7bb1c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Subfission/Cas/CasManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ class CasManager {
public function __construct( array $config ) {
$this->parseConfig( $config );
if ( $this->config['cas_debug'] === true ) {
phpCAS::setDebug();
try {
phpCAS::setDebug();
catch (ErrorException) {
// Fix for depreciation of setDebug
phpCAS::setLogger();
}
phpCAS::log( 'Loaded configuration:' . PHP_EOL
. serialize( $config ) );
} else {
Expand Down

1 comment on commit bb7bb1c

@coolsam726
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should definitely fix issue #93 . I will test and give feedback.

Please sign in to comment.