normalize($scopeKey), $this->normalize($subjectType), $this->normalize($subjectExternalId), $this->normalize($changeType), $this->normalize($baselineHash), $this->normalize($currentHash), ]; return hash('sha256', implode('|', $parts)); } private function normalize(string $value): string { return trim(mb_strtolower($value)); } }