All notable changes to this project will be documented in this file, in reverse chronological order by release.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #50 changes suppressing warnings in
FileWriter::writeFile
method. Custom error handler is used instead of@
, so it is not possible to handle them outside anymore.
- Nothing.
- #51 removes support for PHP 7.2.
- Nothing.
- #7 adds support for PHP 8.0.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #6 fixes issue when target directory is not writeable - throws exception earlier and prevents fallback to system temp directory.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #6 fixes issue when target directory is not writeable - throws exception earlier and prevents fallback to system temp directory.
- #5 adds
\Throwable
extension for package-specific exception markerWebimpress\SafeWriter\Exception\ExceptionInterface
.
-
#5 changes all exception classes to be non-instantiable and all theirs public method to be internal. Library exceptions can only be caught in the user code, cannot be thrown.
-
#5 changes all method declarations to have type hints and return types.
- Nothing.
- #5 removes support for PHP versions prior to 7.2.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #4 fixes exception message when temporary file cannot be created.
-
Adds function to safely writing files to avoid race conditions when the same file is written multiple times in a short time period, and errors on reading not fully written files. Example usage:
use Webimpress\SafeWriter\FileWriter; $targetFile = __DIR__ . '/config-cache.php'; $content = "<?php\nreturn " . var_export($data, true) . ';'; FileWriter::writeFile($targetFile, $content, 0666);
- Nothing.
- Nothing.
- Nothing.
- Nothing.