Skip to content

Commit d7646aa

Browse files
committed
minor symfony#52263 [Validator] fix File constraint tests on 32bit PHP (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [Validator] fix File constraint tests on 32bit PHP | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | alternative to symfony#52259 | License | MIT Commits ------- 626a6c7 fix File constraint tests on 32bit PHP
2 parents a289293 + 626a6c7 commit d7646aa

File tree

1 file changed

+4
-2
lines changed
  • src/Symfony/Component/Validator/Tests/Constraints

1 file changed

+4
-2
lines changed

src/Symfony/Component/Validator/Tests/Constraints/FileTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ public static function provideValidSizes()
101101
['3M', 3000000, false],
102102
['1gi', 1073741824, true],
103103
['1GI', 1073741824, true],
104-
['4g', 4000000000, false],
105-
['4G', 4000000000, false],
104+
['2g', 2000000000, false],
105+
['2G', 2000000000, false],
106+
['4g', 4 === \PHP_INT_SIZE ? '4000000000' : 4000000000, false],
107+
['4G', 4 === \PHP_INT_SIZE ? '4000000000' : 4000000000, false],
106108
];
107109
}
108110

0 commit comments

Comments
 (0)