string|false
public function read(string $file) { if ($this->isEnabled()) { $file = Preg::replace('{[^' . $this->allowlist . ']}i', '-', $file); if (file_exists($this->root . $file)) { $this->io ->writeError('Reading ' . $this->root . $file . ' from cache', true, IOInterface::DEBUG); return file_get_contents($this->root . $file); } } return false; }