string|false
public function sha256(string $file) { if ($this->isEnabled()) { $file = Preg::replace('{[^' . $this->allowlist . ']}i', '-', $file); if (file_exists($this->root . $file)) { return hash_file('sha256', $this->root . $file); } } return false; }