Docs folder standardization and other fixes #297
Annotations
3 warnings
mutation / PHP 8.1-ubuntu-latest:
src/FileCache.php#L92
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
*
* @throws CacheException If failed to create cache directory.
*/
- public function __construct(private string $cachePath, private int $directoryMode = 0775)
+ public function __construct(private string $cachePath, private int $directoryMode = 508)
{
if (!$this->createDirectoryIfNotExists($cachePath)) {
throw new CacheException("Failed to create cache directory \"{$cachePath}\".");
|
mutation / PHP 8.1-ubuntu-latest:
src/FileCache.php#L206
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function deleteMultiple(iterable $keys) : bool
{
$keys = $this->iterableToArray($keys);
- $this->validateKeys($keys);
+
foreach ($keys as $key) {
$this->delete($key);
}
|
mutation / PHP 8.1-ubuntu-latest:
src/FileCache.php#L335
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
if (is_dir($path)) {
return true;
}
- $result = !is_file($path) && mkdir(directory: $path, recursive: true) && is_dir($path);
+ $result = !is_file($path) && mkdir(directory: $path, recursive: true) || is_dir($path);
if ($result) {
chmod($path, $this->directoryMode);
}
|