Docs folder standardization and other fixes #298
Annotations
2 warnings
Run roave infection.:
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}\".");
|
Run roave infection.:
src/FileCache.php#L110
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
}
flock($filePointer, LOCK_SH);
$value = stream_get_contents($filePointer);
- flock($filePointer, LOCK_UN);
+
fclose($filePointer);
return unserialize($value);
}
|
Loading