8000 Merge branch '4.0' into 4.1 · fancyweb/symfony@2b860d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2b860d5

Browse files
Merge branch '4.0' into 4.1
* 4.0: [Filesystem] fix lock file mode [Console] fix typo in phpdoc
2 parents cfe319c + dd16e10 commit 2b860d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Component/Console/Output/OutputInterface.php

Lines changed: 2 additions & 2 deletions
< 8CB4 td data-grid-cell-id="diff-edf7f05533100a3e266c1198a806295111a4ae71714088570a1e8f27f7aa3a13-empty-empty-0" data-selected="false" role="gridcell" style="background-color:var(--bgColor-accent-muted, var(--color-accent-subtle));flex-grow:1" tabindex="-1" valign="top" class="focusable-grid-cell diff-hunk-cell left-side" colSpan="4">
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface OutputInterface
3333
/**
3434
* Writes a message to the output.
3535
*
36-
* @param string|iterable $messages The message as an iterable of lines or a single string
36+
* @param string|iterable $messages The message as an iterable of strings or a single string
3737
* @param bool $newline Whether to add a newline
3838
* @param int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
3939
*/
@@ -42,7 +42,7 @@ public function write($messages, $newline = false, $options = 0);
4242
/**
4343
* Writes a message to the output and adds a newline at the end.
4444
*
45-
* @param string|iterable $messages The message as an iterable of lines of a single string
45+
* @param string|iterable $messages The message as an iterable of strings or a single string
4646
* @param int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
4747
*/
4848
public function writeln($messages, $options = 0);

src/Symfony/Component/Lock/Store/FlockStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private function lock(Key $key, $blocking)
8181
set_error_handler(function ($type, $msg) use (&$error) { $error = $msg; });
8282
if (!$handle = fopen($fileName, 'r+') ?: fopen($fileName, 'r')) {
8383
if ($handle = fopen($fileName, 'x')) {
84-
chmod($fileName, 0644);
84+
chmod($fileName, 0666);
8585
} elseif (!$handle = fopen($fileName, 'r+') ?: fopen($fileName, 'r')) {
8686
usleep(100); // Give some time for chmod() to complete
8787
$handle = fopen($fileName, 'r+') ?: fopen($fileName, 'r');

0 commit comments

Comments
 (0)
0