From 039537ebe26f29b31fe5eba1fe96675291a0be1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Guti=C3=A9rrez?= Date: Tue, 19 Jul 2016 15:06:32 +0200 Subject: [PATCH] touch! --- src/CryptKey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CryptKey.php b/src/CryptKey.php index 617bb8e8..adcacfd3 100644 --- a/src/CryptKey.php +++ b/src/CryptKey.php @@ -57,7 +57,7 @@ class CryptKey { $keyPath = sys_get_temp_dir() . '/' . sha1($key) . '.key'; - if (!file_exists($keyPath) && !mkdir($keyPath)) { + if (!file_exists($keyPath) && !touch($keyPath)) { throw new \RuntimeException('"%s" key file could not be created', $keyPath); }