Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated

Bug #1997682 reported by Franck Butelle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php-cas (Ubuntu)
New
Undecided
Unassigned

Bug Description

The bug is :

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /usr/share/php/CAS/source/CAS/Client.php on line 1025

Easy correction : in line 1024 :
change

$ticket = (isset($_GET['ticket']) ? $_GET['ticket'] : null);

to
$ticket = (isset($_GET['ticket']) ? $_GET['ticket'] : "");

Thanks !

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.