deprecation warning in php 8.1.2
carl-welch opened this issue · comments
Carl Welch commented
PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /path/to/vendor/apereo/phpcas/source/CAS/Client.php on line 1041
Maybe change null to the empty string on line 1040?
$ticket = (isset($_GET['ticket']) ? $_GET['ticket'] : '');
Joachim Fritschi commented
This issue may have been solved with a recent pull
Can you please check against the current master branch?
Carl Welch commented
Yes, I was looking at the v1.4.0 release and didn't think to look at master. Sorry about that. Looks great, tnx.