8000 Adding two more questionable fixes · symfony/symfony@d6a3a84 · GitHub
[go: up one dir, main page]

Skip to content

Commit d6a3a84

Browse files
committed
Adding two more questionable fixes
1 parent c6db772 commit d6a3a84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/DependencyInjection/Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function setChanges(array $changes)
102102
/**
103103
* Sets a factory.
104104
*
105-
* @param string|array|Reference $factory A PHP function, reference or an array containing a class/Reference and a method to call
105+
* @param string|array|Reference|null $factory A PHP function, reference or an array containing a class/Reference and a method to call
106106
*
107107
* @return $this
108108
*/

src/Symfony/Component/Filesystem/Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function copy($originFile, $targetFile, $overwriteNewerFiles = false)
5959
}
6060

6161
// Stream context created to allow files overwrite when using FTP stream wrapper - disabled by default
62-
if (false === $target = @fopen($targetFile, 'w', null, stream_context_create(['ftp' => ['overwrite' => true]]))) {
62+
if (false === $target = @fopen($targetFile, 'w', false, stream_context_create(['ftp' => ['overwrite' => true]]))) {
6363
throw new IOException(sprintf('Failed to copy "%s" to "%s" because target file could not be opened for writing.', $originFile, $targetFile), 0, null, $originFile);
6464
}
6565

0 commit comments

Comments
 (0)
0