Deprecate PHP 4 constructors

This commit is contained in:
Andrea Faulds 2015-03-31 16:10:22 +02:00 committed by Nikita Popov
parent d252c9f832
commit db76b708cf
110 changed files with 219 additions and 191 deletions

View file

@ -8,7 +8,7 @@ array_uintersect_assoc(): Test return type and value for expected input
*/
class cr {
private $priv_member;
function cr($val) {
function __construct($val) {
$this->priv_member = $val;
}
static function comp_func_cr($a, $b) {
@ -33,4 +33,4 @@ array(2) {
["priv_member":"cr":private]=>
int(-15)
}
}
}