diff --git a/src/File/Rename.php b/src/File/Rename.php index 8e885fc3..87f56395 100644 --- a/src/File/Rename.php +++ b/src/File/Rename.php @@ -225,7 +225,7 @@ protected function _convertOptions($options) break; case 'randomize' : - $files['randomize'] = (boolean) $value; + $files['randomize'] = (bool) $value; break; default: diff --git a/src/File/RenameUpload.php b/src/File/RenameUpload.php index 4ff4bc05..25a71025 100644 --- a/src/File/RenameUpload.php +++ b/src/File/RenameUpload.php @@ -80,7 +80,7 @@ public function getTarget() */ public function setUseUploadName($flag = true) { - $this->options['use_upload_name'] = (boolean) $flag; + $this->options['use_upload_name'] = (bool) $flag; return $this; } @@ -117,7 +117,7 @@ public function getUseUploadExtension() */ public function setOverwrite($flag = true) { - $this->options['overwrite'] = (boolean) $flag; + $this->options['overwrite'] = (bool) $flag; return $this; } @@ -135,7 +135,7 @@ public function getOverwrite() */ public function setRandomize($flag = true) { - $this->options['randomize'] = (boolean) $flag; + $this->options['randomize'] = (bool) $flag; return $this; }