mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-26 12:58:08 +00:00
🚿
This commit is contained in:
@@ -106,7 +106,7 @@ abstract class QROutputAbstract implements QROutputInterface{
|
||||
protected function saveToFile(string $data, string $file):bool{
|
||||
|
||||
if(!is_writable(dirname($file))){
|
||||
throw new QRCodeOutputException(sprintf('Could not write data to cache file: %s', $file));
|
||||
throw new QRCodeOutputException(sprintf('Cannot write data to cache file: %s', $file));
|
||||
}
|
||||
|
||||
return (bool)file_put_contents($file, $data);
|
||||
|
||||
Reference in New Issue
Block a user