function setCachePath($data, $root) { if ($data === null) { return; } $path = resolvePath($data, $root); if (State::$cachePath !== null && State::$cachePath !== $path) { throw new Exceptions\CachePathConflict(State::$cachePath, $path); } State::$cachePath = $path; }