<?php str_ends_with(string $haystack, string $needle): bool
<?php throw new RuntimeException("Could not create cache directory: {$this->cacheDirectory}"); } $separator = str_ends_with($this->cacheDirectory, '/') ? '' : DIRECTORY_SEPARATOR; return $this->cacheDirectory.$separator.$key; }