From c7bfd2f55cde2abf13e60f75f5a86a2cded835d3 Mon Sep 17 00:00:00 2001 From: Roland Franssen Date: Sun, 18 Dec 2016 15:48:39 +0100 Subject: [PATCH 1/2] [Filesystem] Updated phpdoc on allowed types of content --- src/Symfony/Component/Filesystem/Filesystem.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Component/Filesystem/Filesystem.php b/src/Symfony/Component/Filesystem/Filesystem.php index 79e8420688821..9e59beb46763b 100644 --- a/src/Symfony/Component/Filesystem/Filesystem.php +++ b/src/Symfony/Component/Filesystem/Filesystem.php @@ -485,10 +485,10 @@ public function isAbsolutePath($file) /** * Atomically dumps content into a file. * - * @param string $filename The file to be written to - * @param string $content The data to write into the file - * @param null|int $mode The file mode (octal). If null, file permissions are not modified - * Deprecated since version 2.3.12, to be removed in 3.0. + * @param string $filename The file to be written to + * @param string|array|resource $content The data to write into the file + * @param null|int $mode The file mode (octal). If null, file permissions are not modified + * Deprecated since version 2.3.12, to be removed in 3.0. * * @throws IOException If the file cannot be written to. */ From b45151973a92e099fd1658d72dd840939b33eea2 Mon Sep 17 00:00:00 2001 From: Roland Franssen Date: Sun, 18 Dec 2016 16:00:17 +0100 Subject: [PATCH 2/2] Update Filesystem.php --- src/Symfony/Component/Filesystem/Filesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Filesystem/Filesystem.php b/src/Symfony/Component/Filesystem/Filesystem.php index 9e59beb46763b..92a35e5ca8d6d 100644 --- a/src/Symfony/Component/Filesystem/Filesystem.php +++ b/src/Symfony/Component/Filesystem/Filesystem.php @@ -490,7 +490,7 @@ public function isAbsolutePath($file) * @param null|int $mode The file mode (octal). If null, file permissions are not modified * Deprecated since version 2.3.12, to be removed in 3.0. * - * @throws IOException If the file cannot be written to. + * @throws IOException If the file cannot be written to */ public function dumpFile($filename, $content, $mode = 0666) {