8000 minor #9904 [Filesystem] Improved the code of an example (javiereguiluz) · symfony/symfony-docs@b6a23a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit b6a23a3

Browse files
committed
minor #9904 [Filesystem] Improved the code of an example (javiereguiluz)
This PR was merged into the 2.8 branch. Discussion ---------- [Filesystem] Improved the code of an example This continues #9903 and removes the last `mt_rand()` example in the docs. Commits ------- 35e98e6 [Filesystem] Improved the code of an example
2 parents b38430e + 35e98e6 commit b6a23a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/filesystem.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ endpoint for filesystem operations::
3434
$fileSystem = new Filesystem();
3535

3636
try {
37-
$fileSystem->mkdir('/tmp/random/dir/'.mt_rand());
37+
$fileSystem->mkdir(sys_get_temp_dir().'/'.random_int(0, 1000));
3838
} catch (IOExceptionInterface $exception) {
3939
echo "An error occurred while creating your directory at ".$exception->getPath();
4040
}

0 commit comments

Comments
 (0)
0