회피시도 추가, spl_object_hash를 spl_object_id로 변경

This commit is contained in:
2019-06-06 03:34:47 +09:00
parent 44b9ba96c3
commit ede1d89569
3 changed files with 36 additions and 3 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ abstract class ObjectTrigger{
abstract public function action(?array $env=null, $arg=null):?array;
public function getUniqueID():string{
$priority = static::$priority;
$hash = spl_object_hash($this->object);
$objID = spl_object_id($this->object);
$fqn = static::class;
return "{$priority}_{$fqn}_{$hash}";
return "{$priority}_{$fqn}_{$objID}";
}
}