mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix CS error
This commit is contained in:
parent
bc977544c5
commit
90c9ead8cd
1 changed files with 1 additions and 1 deletions
|
@ -1074,7 +1074,7 @@ class Validation {
|
|||
if (!static::uploadError($file, $options['optional'])) {
|
||||
return false;
|
||||
}
|
||||
if ($options['optional'] && (int) $file['error'] === UPLOAD_ERR_NO_FILE) {
|
||||
if ($options['optional'] && (int)$file['error'] === UPLOAD_ERR_NO_FILE) {
|
||||
return true;
|
||||
}
|
||||
if (isset($options['minSize']) && !static::fileSize($file, '>=', $options['minSize'])) {
|
||||
|
|
Loading…
Reference in a new issue