File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -321,13 +321,13 @@ creates them before appending the contents.
321
321
The ``readFile() `` method was introduced in Symfony 7.1.
322
322
323
323
:method: `Symfony\\ Component\\ Filesystem\\ Filesystem::readFile ` returns all the
324
- contents of a file as a string. Unlike :phpfunction: `file_get_contents ` function
324
+ contents of a file as a string. Unlike the :phpfunction: `file_get_contents ` function
325
325
from PHP, it throws an exception when the given file path is not readable and
326
326
when passing the path to a directory instead of a file::
327
327
328
328
$contents = $filesystem->readFile('/some/path/to/file.txt');
329
329
330
- The ``$contents `` variable contains all the contents of the ``filex.txt `` file.
330
+ The ``$contents `` variable now stores all the contents of the ``filex.txt `` file.
331
331
332
332
Path Manipulation Utilities
333
333
---------------------------
You can’t perform that action at this time.
0 commit comments