1--TEST-- 2SpoofChecker with typed references 3--EXTENSIONS-- 4intl 5--FILE-- 6<?php 7 8class Test { 9 public string $x; 10} 11 12$test = new Test; 13$test->x = ""; 14 15$checker = new Spoofchecker(); 16$checker->isSuspicious("", $test->x); 17var_dump($test); 18 19$test = new Test; 20$test->x = ""; 21 22$checker = new Spoofchecker(); 23$checker->areConfusable("", "", $test->x); 24var_dump($test); 25 26?> 27--EXPECT-- 28object(Test)#1 (1) { 29 ["x"]=> 30 string(1) "0" 31} 32object(Test)#3 (1) { 33 ["x"]=> 34 string(1) "1" 35} 36