Skip to content

Commit da63591

Browse files
committed
long array syntax (for php 5.3+)
1 parent 95f9fd0 commit da63591

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/validator/sfValidatorSchema.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ protected function getBytes($value)
395395
$number = (float) $matches[1];
396396
$modifier = strtoupper($matches[2]);
397397

398-
$exp_by_modifier = [
398+
$exp_by_modifier = array(
399399
'K' => 1,
400400
'M' => 2,
401401
'G' => 3,
@@ -404,7 +404,7 @@ protected function getBytes($value)
404404
'E' => 6,
405405
'Z' => 7,
406406
'Y' => 8,
407-
];
407+
);
408408

409409
if (array_key_exists($modifier, $exp_by_modifier)) {
410410
$exp = $exp_by_modifier[$modifier];

0 commit comments

Comments
 (0)