Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

- The class `FileSystem` was renamed `NativeFileSystem`. `FileSystem` is now an
interface.
- Deprecated the `::getFileContents()` method in favour of the `::readFile()`.
7 changes: 2 additions & 5 deletions src/FileSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,10 @@ public function escapePath(string $path): string;
public function dumpFile(string $filename, $content = ''): void;

/**
* Gets the contents of a file.
*
* @param string $file File path
* @deprecated Use the `::readFile()` method. Deprecated since 2.0 and it will be removed in 3.0.
* @see readFile
*
* @throws IOException If the file cannot be read
*
* @return string File contents
*/
public function getFileContents(string $file): string;

Expand Down