diff options
Diffstat (limited to 'lib/Minz/ModelArray.php')
| -rw-r--r-- | lib/Minz/ModelArray.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Minz/ModelArray.php b/lib/Minz/ModelArray.php index 090536623..f12e23567 100644 --- a/lib/Minz/ModelArray.php +++ b/lib/Minz/ModelArray.php @@ -24,7 +24,11 @@ class Minz_ModelArray { $this->filename = $filename; } - /** @return array<string,mixed> */ + /** + * @return array<string,mixed> + * @throws Minz_FileNotExistException + * @throws Minz_PermissionDeniedException + */ protected function loadArray(): array { if (!file_exists($this->filename)) { throw new Minz_FileNotExistException($this->filename, Minz_Exception::WARNING); @@ -46,6 +50,7 @@ class Minz_ModelArray { /** * Sauve le tableau $array dans le fichier $filename * @param array<string,mixed> $array + * @throws Minz_PermissionDeniedException */ protected function writeArray(array $array): bool { if (file_put_contents($this->filename, "<?php\n return " . var_export($array, true) . ';', LOCK_EX) === false) { |
